mac80211: use ieee80211_free_txskb in a few more places to prevent skb leaks
[openwrt.git] / package / mac80211 / patches / 310-ap_scan.patch
1 --- a/net/mac80211/cfg.c
2 +++ b/net/mac80211/cfg.c
3 @@ -1796,8 +1796,6 @@ static int ieee80211_scan(struct wiphy *
4                  * beaconing hasn't been configured yet
5                  */
6         case NL80211_IFTYPE_AP:
7 -               if (sdata->u.ap.beacon)
8 -                       return -EOPNOTSUPP;
9                 break;
10         default:
11                 return -EOPNOTSUPP;