I'm seeing inconsistent behavior regarding beacon miss handling.
I have a setup of both STA & AP running madwifi 0.9.2 on XScale IXP425 BE.
I let the STA associate with the AP and then I hard-reset the AP.
Sometimes the beacon miss fires almost immediately, which is good because I see in the source code that the beacon miss interval is adjusted to 7 beacon intervals i.e. it should alert after around 700 ms in the default beacon interval.
However sometimes many seconds can pass (i.e. 20 seconds and even 30 seconds) before the beacon miss function is called (ieee80211_beacon_miss() ).
I'm wondering what causes such a big variation in the generation of the beacon miss interrupt and it looks like a bug to me because this may lead to really weird scenarios where the AP completes a full reboot without the station detecting it i.e. station thinks it's associated and AP doesn't know about it.