mac80211: fix quilt patch corruption
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 337-mac80211-fix-sband-iftype-data-lookup-for-AP_VLAN.patch
index 9d8b1978b2d653db245f3b93705a14ad69d5f26f..67b428494969d1d0cd2bfedf1f696c6714574830 100644 (file)
@@ -21,15 +21,3 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        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];