]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/linux/linux-4.9.8-ath_ignore_eeprom_regd.patch
ca835eb9aaa33d4fe9318614ed4b4fec3861cf2c
[ipfire-2.x.git] / src / patches / linux / linux-4.9.8-ath_ignore_eeprom_regd.patch
1 diff -Naur linux-4.9.8.org/drivers/net/wireless/ath/regd.c linux-4.9.8/drivers/net/wireless/ath/regd.c
2 --- linux-4.9.8.org/drivers/net/wireless/ath/regd.c 2017-02-04 09:47:29.000000000 +0100
3 +++ linux-4.9.8/drivers/net/wireless/ath/regd.c 2017-02-11 15:31:20.502527360 +0100
4 @@ -341,6 +341,8 @@
5 struct ieee80211_channel *ch;
6 unsigned int i;
7
8 + return;
9 +
10 for (band = 0; band < NUM_NL80211_BANDS; band++) {
11 if (!wiphy->bands[band])
12 continue;
13 @@ -374,6 +376,8 @@
14 {
15 struct ieee80211_supported_band *sband;
16
17 + return;
18 +
19 sband = wiphy->bands[NL80211_BAND_2GHZ];
20 if (!sband)
21 return;
22 @@ -402,6 +406,8 @@
23 struct ieee80211_channel *ch;
24 unsigned int i;
25
26 + return;
27 +
28 if (!wiphy->bands[NL80211_BAND_5GHZ])
29 return;
30
31 @@ -632,6 +638,8 @@
32 {
33 const struct ieee80211_regdomain *regd;
34
35 + return 0;
36 +
37 wiphy->reg_notifier = reg_notifier;
38 wiphy->regulatory_flags |= REGULATORY_STRICT_REG |
39 REGULATORY_CUSTOM_REG;