100-mac80211-support-kernel-version-6.18.patch 1006 B

1234567891011121314151617181920212223242526272829303132
  1. From 8c977646a9a7eca0fc70f785606154581cf26be3 Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Mon, 1 Dec 2025 23:48:36 +0100
  4. Subject: [PATCH] mac80211: support kernel version 6.18
  5. Support mac80211 kernel version 6.18 with new radio_idx arg.
  6. Signed-off-by: Christian Marangi <[email protected]>
  7. ---
  8. mac80211.c | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. --- a/mac80211.c
  11. +++ b/mac80211.c
  12. @@ -308,7 +308,7 @@ static void mwl_mac80211_remove_interfac
  13. mwl_mac80211_remove_vif(priv, vif);
  14. }
  15. -static int mwl_mac80211_config(struct ieee80211_hw *hw,
  16. +static int mwl_mac80211_config(struct ieee80211_hw *hw, int radio_idx,
  17. u32 changed)
  18. {
  19. struct ieee80211_conf *conf = &hw->conf;
  20. @@ -564,7 +564,7 @@ out:
  21. return rc;
  22. }
  23. -static int mwl_mac80211_set_rts_threshold(struct ieee80211_hw *hw,
  24. +static int mwl_mac80211_set_rts_threshold(struct ieee80211_hw *hw, int radio_idx,
  25. u32 value)
  26. {
  27. return mwl_fwcmd_set_rts_threshold(hw, value);