Commit e5b02f64 authored by Grazvydas Ignotas's avatar Grazvydas Ignotas Committed by John W. Linville
Browse files

wl1251: only call ieee80211_beacon_loss in managed mode

ieee80211_beacon_loss() is only to be called in managed mode,
but the firmware may send the sync timeout event at any time,
so do a check before calling.

Signed-off-by: default avatarGrazvydas Ignotas <>
Tested-by: default avatarPali Rohár <>
Signed-off-by: default avatarJohn W. Linville <>
parent 863bdbc9
......@@ -124,11 +124,12 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
return ret;
if (wl->vif && vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) {
/* indicate to the stack, that beacons have been lost */
if (wl->vif && wl->vif->type == NL80211_IFTYPE_STATION)
if (vector & REGAINED_BSS_EVENT_ID) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment