Search Linux Wireless

[PATCH] rtl8192cu driver ignores eeprom channel plan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Larry,

The various rtl8192xx drivers read the manufacturer-set channel plan
into efuse.eeprom_channelplan, but ignore this and use
efuse.channel_plan (which is never initialized) when deciding which
channels to allow. The patch below allowed my device, purchased in
Europe, to see channels 12 and 13 when configured with "iw reg set EC"

It needs more work in order to accept being configured for arbitrary countries: would you like me to work on a more comprehensive 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",

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux