On Thu, 2008-10-02 at 22:20 +0200, Gertjan van Wingerde wrote: > The problem I'm facing is that many of the Ralink devices have 2 region > settings in their EEPROM, one for 802.11a networks, and one for > 802.11[bgn] networks. So far I have only seen devices where these two > settings contain the same region indication, but I don't know whether > this is the case for all devices. > > At this point in time I use the regulatory_hint function at driver > start-up time to communicate the region setting that matches the > configured band, but that would (probably) not hold up when the user > reconfigures the mode. I think you basically have two choices depending on whether you have a country code in the eeprom or not. If you have a country code, I suggest you just use either one. As far as I know, though, you don't have country codes. So if there's a valid code in the EEPROM you probably should use the regdomain struct hint rather than the alpha2 hint and build a regdomain that contains both 2.4 and 5 GHz channels based on the two region values you have. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part