Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created November 11, 2020 18:46
Show Gist options
  • Save alexalouit/89a8ec04fe4cc08c6cb04ad395552fcb to your computer and use it in GitHub Desktop.
Save alexalouit/89a8ec04fe4cc08c6cb04ad395552fcb to your computer and use it in GitHub Desktop.
diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c
index e25bfdf..ac42657 100644
--- a/drivers/net/wireless/ath/regd.c
+++ b/drivers/net/wireless/ath/regd.c
@@ -268,6 +268,8 @@ static void ath_force_clear_no_ir_chan(struct wiphy *wiphy,
{
const struct ieee80211_reg_rule *reg_rule;
+ return;
+
reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq));
if (IS_ERR(reg_rule))
return;
@@ -378,6 +380,8 @@ ath_reg_apply_ir_flags(struct wiphy *wiphy,
{
struct ieee80211_supported_band *sband;
+ return;
+
sband = wiphy->bands[NL80211_BAND_2GHZ];
if (!sband)
return;
@@ -407,6 +411,8 @@ static void ath_reg_apply_radar_flags(struct wiphy *wiphy,
struct ieee80211_channel *ch;
unsigned int i;
+ return;
+
if (!wiphy->bands[NL80211_BAND_5GHZ])
return;
@@ -638,6 +644,8 @@ ath_regd_init_wiphy(struct ath_regulatory *reg,
{
const struct ieee80211_regdomain *regd;
+ return 0;
+
wiphy->reg_notifier = reg_notifier;
wiphy->regulatory_flags |= REGULATORY_STRICT_REG |
REGULATORY_CUSTOM_REG;
$ apk add alpine-sdk
$ adduser builder
$ addgroup builder abuild
$ su builder
$ cd
$ git clone --single-branch --branch 3.12-stable https://git.alpinelinux.org/aports
$ cd aports/main/linux-lts
$ sudo mkdir -p /var/cache/distfiles
$ sudo chmod a+w /var/cache/distfiles
$ abuild-keygen -a -i
$ abuild fetch
# insert to APKBUILD source section:
0099-atheros.patch
# insert to APKBUILD sha512sums section:
bb4443686ec3c4eca87472ad8a99416763df1cdf8f15eabdec6468336d2e0e0f0ba18dd6e814b0c7fa777956773feb2bc624441552e9e9c096a86054aa68dbd8 0099-atheros.patch
$ abuild checksum
$ abuild deps
$ abuild -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment