From e084a00d9a050a53954173480dd3cb770bef3678 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 4 Jan 2023 13:15:20 -0800 Subject: [PATCH] More ways to force HX as the default country. (#616) --- patches/702-enable-country-hx.patch | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/patches/702-enable-country-hx.patch b/patches/702-enable-country-hx.patch index d04f69e1..da9aa505 100644 --- a/patches/702-enable-country-hx.patch +++ b/patches/702-enable-country-hx.patch @@ -18,7 +18,7 @@ Index: openwrt/package/firmware/wireless-regdb/patches/999-add-country-hx.patch + (2402 - 2482 @ 20), (20) --- /dev/null +++ b/package/kernel/mac80211/patches/ath/302-add-country-hx.patch -@@ -0,0 +1,34 @@ +@@ -0,0 +1,45 @@ +--- a/drivers/net/wireless/ath/regd_common.h ++++ b/drivers/net/wireless/ath/regd_common.h +@@ -498,6 +498,8 @@ @@ -53,3 +53,14 @@ Index: openwrt/package/firmware/wireless-regdb/patches/999-add-country-hx.patch + } + + if (reg->country_code == CTRY_DEFAULT) { ++--- a/drivers/net/wireless/ath/regd.c +++++ b/drivers/net/wireless/ath/regd.c ++@@ -803,6 +803,8 @@ ++ regulatory); ++ int r; ++ +++ reg->current_rd = 0; // Force HAM +++ ++ r = __ath_regd_init(reg); ++ if (r) ++ return r;