a8f63a0717
This updates mac80211 to backprots-4.14-rc2. This was compile and runtime tested with ath9k, ath10k and b43 with multiple stations and ieee80211w and in different scenarios by many other people. To create the backports-4.14-rc2-1.tar.xz use this repository: https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git from tag v4.14-rc2-1 Then run this: ./gentree.py --git-revision v4.14-rc2 --clean <path to linux repo> ../backports-4.14-rc2-1 This also adapts the ath10k-ct and mt76 driver to the changed cfg80211 APIs and syncs the nl80211.h file in iw with the new version from backports-4.14-rc2. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
19 lines
766 B
Diff
19 lines
766 B
Diff
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
|
|
@@ -1030,6 +1030,16 @@ static int rt2x00lib_probe_hw_modes(stru
|
|
struct ieee80211_rate *rates;
|
|
unsigned int num_rates;
|
|
unsigned int i;
|
|
+#ifdef CONFIG_OF
|
|
+ struct device_node *np = rt2x00dev->dev->of_node;
|
|
+ unsigned int enabled;
|
|
+ if (!of_property_read_u32(np, "ralink,2ghz",
|
|
+ &enabled) && !enabled)
|
|
+ spec->supported_bands &= ~SUPPORT_BAND_2GHZ;
|
|
+ if (!of_property_read_u32(np, "ralink,5ghz",
|
|
+ &enabled) && !enabled)
|
|
+ spec->supported_bands &= ~SUPPORT_BAND_5GHZ;
|
|
+#endif /* CONFIG_OF */
|
|
|
|
if (rt2x00dev->dev->platform_data) {
|
|
struct rt2x00_platform_data *pdata;
|