Linux wireless drivers development
 help / color / mirror / Atom feed
From: Georgiewskiy Yuriy <bottleman@icf.org.ru>
To: Michal Kazior <kazikcz@gmail.com>
Cc: linux-wireless@vger.kernel.org,
	"Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
Subject: Re: [PATCH] ath: sanitize 0xFFFF regdomain
Date: Sat, 23 Feb 2013 23:45:54 +0400 (MSK)	[thread overview]
Message-ID: <alpine.DEB.2.02.1302232342380.15538@icf.org.ru> (raw)
In-Reply-To: <1361648055-15871-1-git-send-email-kazikcz@gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2147 bytes --]

On 2013-02-23 20:34 +0100, Michal Kazior wrote linux-wireless@vger.kernel.o...:

hm, strange, i have this cards, and it's works fine, exactly not fine, but works, 
and as i known it's EOS since 2012.

MK>Dbii F52N-PRO mini pci device reports an invalid
MK>regdomain. This card has been reported to work on
MK>MikroTik's RouterOS but failed on Linux:
MK>
MK>[   14.320000] ath: EEPROM regdomain: 0xffff
MK>[   14.320000] ath: EEPROM indicates we should expect a country code
MK>[   14.320000] ath: invalid regulatory domain/country code 0xbfff
MK>[   14.320000] ath: Invalid EEPROM contents
MK>[   14.320000] ath9k 0000:00:12.0: Failed to initialize device
MK>[   14.330000] ath9k: probe of 0000:00:12.0 failed with error -22
MK>
MK>With the patch the device works fine.
MK>
MK>Signed-off-by: Michal Kazior <kazikcz@gmail.com>
MK>---
MK> drivers/net/wireless/ath/regd.c | 3 ++-
MK> 1 file changed, 2 insertions(+), 1 deletion(-)
MK>
MK>diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c
MK>index ccc4c71..48fb1b9 100644
MK>--- a/drivers/net/wireless/ath/regd.c
MK>+++ b/drivers/net/wireless/ath/regd.c
MK>@@ -533,10 +533,11 @@ ath_regd_init_wiphy(struct ath_regulatory *reg,
MK>  * but since we have more than one user with it we need
MK>  * a solution for them. We default to 0x64, which is the
MK>  * default Atheros world regulatory domain.
MK>+ * There is also at least one report of 0xFFFF being set.
MK>  */
MK> static void ath_regd_sanitize(struct ath_regulatory *reg)
MK> {
MK>-	if (reg->current_rd != COUNTRY_ERD_FLAG)
MK>+	if (reg->current_rd != COUNTRY_ERD_FLAG && reg->current_rd != 0xFFFF)
MK> 		return;
MK> 	printk(KERN_DEBUG "ath: EEPROM regdomain sanitized\n");
MK> 	reg->current_rd = 0x64;
MK>

C уважением                       With Best Regards
Георгиевский Юрий.                Georgiewskiy Yuriy
+7 4872 711666                    +7 4872 711666
факс +7 4872 711143               fax +7 4872 711143
Компания ООО "Ай Ти Сервис"       IT Service Ltd
http://nkoort.ru                  http://nkoort.ru
JID: GHhost@icf.org.ru            JID: GHhost@icf.org.ru
YG129-RIPE                        YG129-RIPE

  reply	other threads:[~2013-02-23 19:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-23 19:34 [PATCH] ath: sanitize 0xFFFF regdomain Michal Kazior
2013-02-23 19:45 ` Georgiewskiy Yuriy [this message]
2013-02-26 17:49   ` Michał Kazior
2013-02-26 18:12     ` Georgiewskiy Yuriy
2013-02-26 18:29 ` Luis R. Rodriguez
2013-02-26 19:28   ` Michał Kazior
2013-02-26 20:01     ` Luis R. Rodriguez
2013-02-27  0:27       ` Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.02.1302232342380.15538@icf.org.ru \
    --to=bottleman@icf.org.ru \
    --cc=kazikcz@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox