wl12xx: send beacon loss events to userspace
authorEliad Peller <eliad@wizery.com>
Tue, 15 May 2012 11:53:17 +0000 (14:53 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 6 Jun 2012 16:28:06 +0000 (19:28 +0300)
Send beacon loss events to userspace, so it will be
able to initiate roaming before disconnection

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/event.c

index 4ed8357991782ec1dc55c8751de24ef8565937e2..c976f04098655b08ad4812ddcbeadc6be0de79e6 100644 (file)
@@ -156,6 +156,15 @@ static int wl1271_event_process(struct wl1271 *wl)
                 */
                ieee80211_queue_delayed_work(wl->hw, &wl->connection_loss_work,
                                             msecs_to_jiffies(delay));
+
+               wl12xx_for_each_wlvif_sta(wl, wlvif) {
+                       vif = wl12xx_wlvif_to_vif(wlvif);
+
+                       ieee80211_cqm_rssi_notify(
+                                       vif,
+                                       NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
+                                       GFP_KERNEL);
+               }
        }
 
        if (vector & REGAINED_BSS_EVENT_ID) {