]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
mac80211: send beacon loss events to userspace
authorHolger Schurig <holgerschurig@googlemail.com>
Tue, 15 May 2012 13:38:59 +0000 (15:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:24:53 +0000 (15:24 -0400)
Send beacon loss events to userspace, so it will be
able to initiate roaming before disconnection

Signed-off-by: Holger Schurig <holgerschurig@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index a2f18b7e68580a472cdab95ae34be4ac7a814427..4ef22a49870fc6b27371b080bf64059bb56000be 100644 (file)
@@ -1572,6 +1572,8 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
                net_dbg_ratelimited("%s: detected beacon loss from AP - sending probe request\n",
                                    sdata->name);
 #endif
+       ieee80211_cqm_rssi_notify(&sdata->vif,
+               NL80211_CQM_RSSI_BEACON_LOSS_EVENT, GFP_KERNEL);
 
        /*
         * The driver/our work has already reported this event or the