staging: brcm80211: set beacon interval as provided by mac80211
authorArend van Spriel <arend@broadcom.com>
Thu, 10 Feb 2011 11:03:50 +0000 (12:03 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:52:50 +0000 (12:52 -0800)
Driver now follows beacon interval as set by mac80211 callback.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c

index d02b6bb18a189ed83bc40b43d6ecb54a8361b27b..da86103665db6a03c3cdd77b867c76d2b7a79cc9 100644 (file)
@@ -372,8 +372,9 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw,
        }
        if (changed & BSS_CHANGED_BEACON_INT) {
                /* Beacon interval changed */
-               WL_NONE("%s: Beacon Interval: %d (implement)\n",
+               WL_NONE("%s: Beacon Interval: %d\n",
                        __func__, info->beacon_int);
+               wlc_set(wl->wlc, WLC_SET_BCNPRD, info->beacon_int);
        }
        if (changed & BSS_CHANGED_BSSID) {
                /* BSSID changed, for whatever reason (IBSS and managed mode) */