mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00

* mac80211: bump to 5.8-rc2 changelog: dfe0bc8 mac80211: allow ACS restriction with fixed channel 727685c mac80211: rt2x00: define RF5592 in init_eeprom routine cfd2f3b mac80211: create channel list for fixed channel operation d1100c7 mac80211: Update to version 5.7.5-1 ed2015c mac80211: Update to version 5.8-rc2-1 a956c14 mac80211: util: don't warn on missing sband iftype data 8b3e170 hostapd: fix incorrect service name 68bf5a9 mac80211: don't kill wireless daemon on teardown 25e0ae6 mac80211: make cfg80211 testmode support optional (and disabled by default) b7727a8 mac80211: fix AQL issues 3d731fc mac80211: merge performance improvement patches * mt76: update to 2020-07-22 Signed-off-by: Felix Fietkau <nbd@nbd.name> * mac80211: allow VHT on 2.4GHz Allow VHT rate on 2.4GHz in order to use 256-QAM Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn> * ath10k: allow VHT on 2.4GHz Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn> * hostapd: add vendor_vht option hostapd has vendor_vht option to enable VHT (256-QAM) on 2.4GHz Add this option to hostapd.sh so users can enable it via uci Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn> * ipq807x: Refresh kernel configuration Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * ipq807x: Add WCSS bus This is needed to build ath11k. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * mac80211: Add ath11k This adds the Qualcomm 802.11ax wireless chipset support. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Co-authored-by: Felix Fietkau <nbd@nbd.name> Co-authored-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn> Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
|
|
Date: Thu, 9 Jul 2015 00:07:59 +0200
|
|
Subject: [PATCH] brcmfmac: workaround bug with some inconsistent BSSes state
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
|
|
---
|
|
|
|
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
@@ -712,8 +712,36 @@ static struct wireless_dev *brcmf_cfg802
|
|
struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy);
|
|
struct brcmf_pub *drvr = cfg->pub;
|
|
struct wireless_dev *wdev;
|
|
+ struct net_device *dev;
|
|
int err;
|
|
|
|
+ /*
|
|
+ * There is a bug with in-firmware BSS management. When adding virtual
|
|
+ * interface brcmfmac first tells firmware to create new BSS and then
|
|
+ * it creates new struct net_device.
|
|
+ *
|
|
+ * If creating/registering netdev(ice) fails, BSS remains in some bugged
|
|
+ * state. It conflicts with existing BSSes by overtaking their auth
|
|
+ * requests.
|
|
+ *
|
|
+ * It results in one BSS (addresss X) sending beacons and another BSS
|
|
+ * (address Y) replying to authentication requests. This makes interface
|
|
+ * unusable as AP.
|
|
+ *
|
|
+ * To workaround this bug we may try to guess if register_netdev(ice)
|
|
+ * will fail. The most obvious case is using interface name that already
|
|
+ * exists. This is actually quite likely with brcmfmac & some user space
|
|
+ * scripts as brcmfmac doesn't allow deleting virtual interfaces.
|
|
+ * So this bug can be triggered even by something trivial like:
|
|
+ * iw dev wlan0 delete
|
|
+ * iw phy phy0 interface add wlan0 type __ap
|
|
+ */
|
|
+ dev = dev_get_by_name(&init_net, name);
|
|
+ if (dev) {
|
|
+ dev_put(dev);
|
|
+ return ERR_PTR(-ENFILE);
|
|
+ }
|
|
+
|
|
brcmf_dbg(TRACE, "enter: %s type %d\n", name, type);
|
|
err = brcmf_vif_add_validate(wiphy_to_cfg(wiphy), type);
|
|
if (err) {
|