linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtl8192cu driver ignores eeprom channel plan
@ 2012-03-05 21:39 John Williams
  2012-03-06  1:52 ` Larry Finger
  0 siblings, 1 reply; 2+ messages in thread
From: John Williams @ 2012-03-05 21:39 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless

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@pond-weed.com>

--- 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",


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-06  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-05 21:39 [PATCH] rtl8192cu driver ignores eeprom channel plan John Williams
2012-03-06  1:52 ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).