On Mon, Jul 26, 2010 at 11:48 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Mon, 2010-07-26 at 16:36 -0700, Ben Greear wrote: > >> > You can use nl28011 and register for netlink multicast messages which >> > broadcast device state changes like the ones you mentioned. These come >> > in on iw via event.c, see print_event() and see the case statements >> > for NL80211_CMD_ASSOCIATE, NL80211_CMD_DEAUTHENTICATE, >> > NL80211_CMD_DISASSOCIATE, etc, you even get reason codes parsed for >> > you too. >> >> Ahhh, that is the kind of thing I'm looking for. I'll check out that >> code in detail tomorrow. > > Keep in mind though that not all drivers can give you the difference > between AUTH and ASSOC, and will ONLY report "CONNECTED" events. This is > those drivers that do roaming and all that in firmware rather than in > mac80211. Therefore, generally speaking, you cannot get the states > you're after. FWIW I think he's on ath9k. 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