-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac80211: fix HE issues with AP_VLAN interfaces
Fixes issues with aggregation Signed-off-by: Felix Fietkau <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...ernel/mac80211/patches/subsys/337-mac80211-fix-sband-iftype-data-lookup-for-AP_VLAN.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From: Felix Fietkau <[email protected]> | ||
Date: Thu, 22 Jun 2023 18:02:25 +0200 | ||
Subject: [PATCH] mac80211: fix sband iftype data lookup for AP_VLAN | ||
|
||
AP_VLAN interfaces are virtual, so doesn't really exist as a type for | ||
capabilities. When passed in as a type, AP is the one that's really intended. | ||
|
||
Fixes: c4cbaf7973a7 ("cfg80211: Add support for HE") | ||
Signed-off-by: Felix Fietkau <[email protected]> | ||
--- | ||
|
||
--- a/include/net/cfg80211.h | ||
+++ b/include/net/cfg80211.h | ||
@@ -567,6 +567,9 @@ ieee80211_get_sband_iftype_data(const st | ||
if (WARN_ON(iftype >= NL80211_IFTYPE_MAX)) | ||
return NULL; | ||
|
||
+ if (iftype == NL80211_IFTYPE_AP_VLAN) | ||
+ iftype = NL80211_IFTYPE_AP; | ||
+ | ||
for (i = 0; i < sband->n_iftype_data; i++) { | ||
const struct ieee80211_sband_iftype_data *data = | ||
&sband->iftype_data[i]; | ||
--- a/include/net/cfg80211.h | ||
+++ b/include/net/cfg80211.h | ||
@@ -567,6 +567,9 @@ ieee80211_get_sband_iftype_data(const st | ||
if (WARN_ON(iftype >= NL80211_IFTYPE_MAX)) | ||
return NULL; | ||
|
||
+ if (iftype == NL80211_IFTYPE_AP_VLAN) | ||
+ iftype = NL80211_IFTYPE_AP; | ||
+ | ||
for (i = 0; i < sband->n_iftype_data; i++) { | ||
const struct ieee80211_sband_iftype_data *data = | ||
&sband->iftype_data[i]; |
4 changes: 2 additions & 2 deletions
4
package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters