mac80211: fix masking nested A-MSDU support for mesh
authorAndre Heider <a.heider@gmail.com>
Thu, 20 Oct 2022 10:52:17 +0000 (12:52 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 24 Oct 2022 22:32:58 +0000 (00:32 +0200)
CONFIG_MAC80211_MESH isn't defined for this package, rendering the patch
useless. Match protecting the access of sta_info.mesh with the very same
define declaring it.

Fixes 45109f69a6 "mac80211: fix compile error when mesh is disabled"
Signed-off-by: Andre Heider <a.heider@gmail.com>
package/kernel/mac80211/patches/subsys/800-mac80211-mask-nested-A-MSDU-support-for-mesh.patch

index e7da94c9cdaf5bf85600ae95a647e8b94dc5ae11..a17d6f61615693c64389306f2c452f386e2ed18e 100644 (file)
@@ -24,7 +24,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
  
 -      capab = u16_encode_bits(amsdu, IEEE80211_ADDBA_PARAM_AMSDU_MASK);
 +      capab = 0;
-+#ifdef CONFIG_MAC80211_MESH
++#ifdef CPTCFG_MAC80211_MESH
 +      if (!sta->mesh)
 +#endif
 +              capab = u16_encode_bits(amsdu, IEEE80211_ADDBA_PARAM_AMSDU_MASK);