2014-05-08 08:35:46

by Alessandro Lannocca

[permalink] [raw]
Subject: rtl8192cu regulatory domain

Hello everyone, I'm using backports20140417 on fedora 20 running
kernel 3.14; I have an rtl8192cu-based wifi card (AWUS036NHR) I bought
from amazon italy; I usually had to 'pimp' the CH1_11 rule definition
in regd.c to be able to use channels 12-13 here in italy, however this
morning i stumbled accross this patch:

Signed-off-by John Williams <john@xxxxxxxxxxxxx>

--- linux-3.2/drivers/net/wireless/rtlwifi/regd.c.orig
+++ linux-3.2/drivers/net/wireless/rtlwifi/regd.c
@@ -405,7 +405,7 @@
return -EINVAL;

/* init country_code from efuse channel plan */
- rtlpriv->regd.country_code = rtlpriv->efuse.channel_plan;
+ rtlpriv->regd.country_code = rtlpriv->efuse.eeprom_channelplan;

RT_TRACE(rtlpriv, COMP_REGD, DBG_TRACE,
(KERN_DEBUG "rtl: EEPROM regdomain: 0x%0x\n",

--

I just dropped by to say that it works and I'm no more stuck into
channels 1-11 nor into hacky-whacky ugly workarounds; maybe this patch
could be pushed into production.


Credits: I found this patch in a ml message by Mr. John Williams dated
Mon, 5 Mar 2012 21:39:56 +0000

Thank you all for your work :)

Alessandro Lannocca