Search Linux Wireless

Re: Hostapd doesn't like crda

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

 



On Mon, Dec 29, 2008 at 01:27:36PM -0500, Pavel Roskin wrote:
> On Mon, 2008-12-29 at 08:18 -0800, Luis R. Rodriguez wrote:
> > > I think this wouldn't be hackish, but do we actually _know_ when crda has finished
> > > uploading regulatory information? Does it do it all in one step?
> > 
> > It would go in through another nl80211 command, NL80211_CMD_SET_REG. nl80211 eventually
> > calls set_regdom() and this will set it, so if all goes well we can remove the timer
> > at the end if its active (other means can call CRDA like for 802.11d or the wireless core
> > upon initialization).
> 
> Can we have a command to _get_ regulatory settings?  I think it would be
> useful.  Then hostapd could wait until the correct settings are active.
> If it doesn't happen after some time, hostapd should exit with an error.
> 
> It would be even better if hostapd could wait for an event notifying of
> the regulatory settings change.

While I could make hostapd poll for the change (either with get or by
waiting in a local loop waiting for the event; both are about equally
horrible hacks), I would really prefer this to be done by blocking the
response message in the kernel rather than requiring all user space apps
(or scripts, for that matter) from having to do this. This is just
likely to result in silly "sleep 1" everywhere and hoping that it is
always long enough wait..

I might even be tempted to just push that out from hostapd and leave it
to be a somebody else's problem (that silly shell script with sleep 1)
if the needed mechanism would mean that restarting hostapd takes extra
time). A command for querying the current country would get rid of the
extra penalty on restarts, so I would probably prefer it if these two
options were the only available choices.

Either way, the main problems I see here is to figure out when exactly
the CRDA processing has been completed and to make sure that userspace
apps will somehow know when that happened (i.e., get country better not
return the new country code before all CRDA parameters have been
configured and available for the following set_freq command).

-- 
Jouni Malinen                                            PGP id EFC895FA
--
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