]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/compat-drivers-3.8.3-ath_ignore_eeprom_regdomain.patch
Merge branch 'ppp-update' into beyond-next
[people/teissler/ipfire-2.x.git] / src / patches / compat-drivers-3.8.3-ath_ignore_eeprom_regdomain.patch
CommitLineData
127b7c43
AF
1diff -Naur compat-drivers-3.8.3-2-snpu.org/drivers/net/wireless/ath/regd.c compat-drivers-3.8.3-2-snpu/drivers/net/wireless/ath/regd.c
2--- compat-drivers-3.8.3-2-snpu.org/drivers/net/wireless/ath/regd.c 2013-03-15 22:55:09.000000000 +0100
3+++ compat-drivers-3.8.3-2-snpu/drivers/net/wireless/ath/regd.c 2013-08-22 11:51:36.793297656 +0200
4@@ -200,6 +200,8 @@
5 u32 bandwidth = 0;
6 int r;
7
8+ return;
9+
10 for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
11
12 if (!wiphy->bands[band])
13@@ -259,6 +261,8 @@
14 u32 bandwidth = 0;
15 int r;
16
17+ return;
18+
19 sband = wiphy->bands[IEEE80211_BAND_2GHZ];
20 if (!sband)
21 return;
22@@ -308,6 +312,8 @@
23 struct ieee80211_channel *ch;
24 unsigned int i;
25
26+ return;
27+
28 if (!wiphy->bands[IEEE80211_BAND_5GHZ])
29 return;
30
31@@ -514,6 +520,8 @@
32 {
33 const struct ieee80211_regdomain *regd;
34
35+ return 0;
36+
37 wiphy->reg_notifier = reg_notifier;
38 wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY;
39