Search Linux Wireless

Re: Changing the way we handle region codes on Linux (public thread)

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

 



On Fri, Nov 6, 2009 at 11:20 AM, Luis R. Rodriguez <mcgrof@xxxxxxxxx> wrote:
> On Fri, Nov 6, 2009 at 10:38 AM, John W. Linville
> <linville@xxxxxxxxxxxxx> wrote:
>>
>> FWIW, I think Bob's suggestion makes a lot of sense.
>
> Patches welcomed then :)

So this could consist probably of adding one more environment variable
to the passed COUNTRY one that the kernel passes before calling crda,
a group I guess, andif the group is passed the crda can read
/path/grop-regulatory.bin where group could be ATHR for example.

BTW -- the region codes are already present on db.txt -- so the only
thing that group thing could do is allow us to move the 12 regulatory
domains to userspace and I'm not sure if this is someone's time,
specially since I managed to squeeze the 12 world regulatory domains
to 5 structures, the slight modifications between a few are handled
internally on ath.ko through the reg notifier, see:

static void ath_reg_apply_world_flags(struct wiphy *wiphy,
                                      enum nl80211_reg_initiator initiator,
                                      struct ath_regulatory *reg)
{
        switch (reg->regpair->regDmnEnum) {
        case 0x60:
        case 0x63:
        case 0x66:
        case 0x67:
                ath_reg_apply_beaconing_flags(wiphy, initiator);
                break;
        case 0x68:
                ath_reg_apply_beaconing_flags(wiphy, initiator);
                ath_reg_apply_active_scan_flags(wiphy, initiator);
                break;
        }
        return;
}


  Luis
--
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 Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux