On Mon, May 30, 2011 at 7:46 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Thu, 2011-05-26 at 16:53 +0300, Eliad Peller wrote: >> Add ieee80211_get_operstate() function to get the operstate >> of the netdevice. >> >> This is needed for drivers that need to know when the interface >> is IF_OPER_UP (e.g. wl12xx), and block notifiers can't be used >> (e.g. because the interface is already IF_OPER_UP, like after >> resuming from suspend) > > I don't see how this is necessary since the operstate can't change > during suspend? > in the normal connection flow, after BSS_CHANGED_ASSOC, wl12xx waits for IF_OPER_UP notification (the fw wants to know when the interface is up and ready), which comes immediately (open networks) or after the EAPOL exchange completed successfully. when reconfiguring, after suspend, the operstate is already IF_OPER_UP, so we won't get this notification. we need some way to query the current operstate. Eliad. -- 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