Last active
April 17, 2019 14:24
-
-
Save alexalouit/212340361b597de368f25b963b307ebb to your computer and use it in GitHub Desktop.
atheros reg kernel 4.9.30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/wireless/ath/regd.c 2017-09-13 00:12:11.038844554 +0200 | |
+++ b/drivers/net/wireless/ath/regd.c 2017-09-13 00:13:32.676068380 +0200 | |
@@ -341,6 +341,8 @@ | |
struct ieee80211_channel *ch; | |
unsigned int i; | |
+ return; | |
+ | |
for (band = 0; band < NUM_NL80211_BANDS; band++) { | |
if (!wiphy->bands[band]) | |
continue; | |
@@ -374,6 +376,8 @@ | |
{ | |
struct ieee80211_supported_band *sband; | |
+ return; | |
+ | |
sband = wiphy->bands[NL80211_BAND_2GHZ]; | |
if (!sband) | |
return; | |
@@ -402,6 +406,8 @@ | |
struct ieee80211_channel *ch; | |
unsigned int i; | |
+ return; | |
+ | |
if (!wiphy->bands[NL80211_BAND_5GHZ]) | |
return; | |
@@ -632,6 +638,8 @@ | |
{ | |
const struct ieee80211_regdomain *regd; | |
+ return 0; | |
+ | |
wiphy->reg_notifier = reg_notifier; | |
wiphy->regulatory_flags |= REGULATORY_STRICT_REG | | |
REGULATORY_CUSTOM_REG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment