OSDN Git Service

wl1251: Increase the beacon loss timeout value and handle regain event
[uclinux-h8/linux.git] / drivers / net / wireless / wl12xx / wl1251_event.c
index 18c301d..020d764 100644 (file)
@@ -86,6 +86,14 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
                ieee80211_beacon_loss(wl->vif);
        }
 
+       if (vector & REGAINED_BSS_EVENT_ID) {
+               if (wl->psm_requested) {
+                       ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE);
+                       if (ret < 0)
+                               return ret;
+               }
+       }
+
        return 0;
 }