IFF_RUNNING and hostapd
Dave Taht
dave.taht
Tue Oct 12 13:24:00 PDT 2010
On Tue, Oct 12, 2010 at 10:14 AM, Jouni Malinen <j at w1.fi> wrote:
> On Fri, Oct 01, 2010 at 03:32:42PM -0700, Dave Taht wrote:
>> I recently configured an openwrt system (a nanostation M) as a pure
>> router, not bridge, in AP mode.
>
> Which driver are you using for wlan0?
ath9k with nl80211
>
>> ip addr
>>
>> for wlan0 shows the interface as UP, but with "NO CARRIER".
>
> I don't see that happening in my tests with ath9k..
Are you using it in unbridged mode?
>
>> It doesn't look like the hostapd I'm using sets the IFF_RUNNING bit, ever.
>>
>> So I ask... at what point, and by what, and where should RUNNING be
>> setup on a AP mode, purely routed, non-bridged interface?
>>
>> It seems like a good idea to leave it in the NO CARRIER state until
>> the first client authenticates.
>
> hostapd does not control this and the exact behavior is likely to depend
> on which driver is being used.
What does? My thought was basically IFF_RUNNING should be set
somewhere between these steps on a non-bridged AP, for the first
client that comes online - and unset after the last client goes
offline.
[ 223.058446] wlan0: authenticated
[ 223.058485] wlan0: associate with AP 00:18:39:e7:9c:f7 (try 1)
[ 223.060904] wlan0: RX AssocResp from 00:18:39:e7:9c:f7 (capab=0x411 status=0
aid=2)
[ 223.060906] wlan0: associated
>
> --
> Jouni Malinen ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
--
Dave T?ht
CEO, Teklibre
SKYPE: davetaht
Nicaragua Tel: (int) 505-8868-4319
US Tel: 1-239-829-5608
More information about the Hostap
mailing list