diff options
author | Eyal Shapira <eyal@wizery.com> | 2013-03-12 11:19:41 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2013-03-25 06:33:12 -0400 |
commit | c0ad2f2e66ffc46eb474d0060db9af254ed69177 (patch) | |
tree | 75ca1d0a41b6e9bcd82497a51738751e6cbca341 /drivers/net/wireless/ti | |
parent | 8910cfa3ac022feebfe1c4ae021afc34a1c1af25 (diff) |
wlcore: don't attempt to roam in case of p2p
For STA we report beacon loss to higher levels so that wpa_s
can attempt to roam without disconnecting. In case of P2P CLI
we don't want to attempt roaming and instead disconnect immediately
upon beacon loss.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/event.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/event.c b/drivers/net/wireless/ti/wlcore/event.c index 70f289aa1bc6..67f61689b49e 100644 --- a/drivers/net/wireless/ti/wlcore/event.c +++ b/drivers/net/wireless/ti/wlcore/event.c | |||
@@ -237,6 +237,14 @@ void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap) | |||
237 | !test_bit(wlvif->role_id , &roles_bitmap)) | 237 | !test_bit(wlvif->role_id , &roles_bitmap)) |
238 | continue; | 238 | continue; |
239 | 239 | ||
240 | vif = wl12xx_wlvif_to_vif(wlvif); | ||
241 | |||
242 | /* don't attempt roaming in case of p2p */ | ||
243 | if (wlvif->p2p) { | ||
244 | ieee80211_connection_loss(vif); | ||
245 | continue; | ||
246 | } | ||
247 | |||
240 | /* | 248 | /* |
241 | * if the work is already queued, it should take place. | 249 | * if the work is already queued, it should take place. |
242 | * We don't want to delay the connection loss | 250 | * We don't want to delay the connection loss |
@@ -246,7 +254,6 @@ void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap) | |||
246 | &wlvif->connection_loss_work, | 254 | &wlvif->connection_loss_work, |
247 | msecs_to_jiffies(delay)); | 255 | msecs_to_jiffies(delay)); |
248 | 256 | ||
249 | vif = wl12xx_wlvif_to_vif(wlvif); | ||
250 | ieee80211_cqm_rssi_notify( | 257 | ieee80211_cqm_rssi_notify( |
251 | vif, | 258 | vif, |
252 | NL80211_CQM_RSSI_BEACON_LOSS_EVENT, | 259 | NL80211_CQM_RSSI_BEACON_LOSS_EVENT, |