On 11 June 2014 11:10, Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> wrote: > On Tue, Jun 10, 2014 at 5:11 PM, Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote: >> I have a Fedora 19 system with two ath10k NICs in them. I'm not sure >> they have any regulatory info in them at all, based on logs >> and some poking at what firmware reports. >> >> I have /etc/sysconfig/regdomain set to: >> >> COUNTRY=US > > I don't know who thought adding a sysconfig / default file with > regdomain with a value specified would be a good idea but users should > then just be aware that user regulatory settings *help* compliance > further, specially with cards that have regulatory stuff designed into > it, like ath5k, ath9k and ath10k. > > There is one caveat too -- Atheros sells 802.11 cards to manufacturers > and for some time and maybe still today they set the regulatory domain > to 0x0 and override the regulatory setting in software since this is > economically cheaper than overriding it through changing the EEPROM / > OTP / whatever. This is actually not allowed in certain countries like > the US and JP, and what makes this worse is that the 0x0 regulatory > domain maps to the US on the ath module given that that is what is > designed by Atheros for STAs so that is what we do for ath. AP > manufacturers have the regulatory onus on them though -- so Atheros > cannot control what they do -- they can only provide EEPROM tools, > etc, and if folk are doing stupid things in software or using software > to do sloppy things -- Atheros needs to educate customers that that is > not a feature that is supported, and actually issue a bulletin on it, > otherwise boneheads that have been doing it for a long time will not > change. > > In short don't use the userspace stuff to set the regulatory domain > and use the OTP / EEPROM tools to set it. Setting it in software is > not allowed explicitly at least by the US and JP. It may be allowed in > other countries and if your country has that option you can look at > the ath module for some kconfig options I added before leaving Atheros > that enables some of this functionality for those countries. > > Apart from all this -- the fact that you get an intersection for all > reg hints going for US seems rather odd and should not be happening, > specially since if a regdomain was set to US then -EALREADY should be > issued and that regulatory domain should just be used to set onto the > cards (if the cards had an EEPROM / OTP thing with US). Even if the > user sets US twice, -EALREADY and the implications of it should > happen. > This could be the same issue like fixed in: cfg80211: reg: setup correct alpha2 after intersection (Ben could you try with this patch?) Orginal scenario I descibe: - insmod cfg80211.ko - iw reg set FR (1) - modprobe ath10k_pci (US hint) - intersection and country set as "98" - no way to setup new country using iw reg set (here hostapd startup will failed) But I can imagine also that we have two cards, both using cfg80211.ko So, first card driver loaded set regulatory eg. FR Next we load ath10k --> intersection "98" Next run hostapd - and fail because no way to change regulatory and get correct DFS region BTW: There is no problem (no intersection) when move "iw reg set" after modprobe ath10k - seems strange logic issue here ... BR Janusz BR Janusz -- 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