mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
staging: brcm80211: handle change in association state from mac80211
The driver has flags for association state which are now being set according to notification from mac80211. 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>
This commit is contained in:
parent
4191e2d564
commit
d8a1fb44ab
|
|
@ -333,6 +333,7 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw,
|
|||
*/
|
||||
WL_ERROR("%s: %s: %sassociated\n", KBUILD_MODNAME, __func__,
|
||||
info->assoc ? "" : "dis");
|
||||
wlc_associate_upd(wl->wlc, info->assoc);
|
||||
}
|
||||
if (changed & BSS_CHANGED_ERP_CTS_PROT) {
|
||||
/* CTS protection changed */
|
||||
|
|
|
|||
|
|
@ -8590,3 +8590,9 @@ void wlc_scan_stop(struct wlc_info *wlc)
|
|||
{
|
||||
wlc_phy_hold_upd(wlc->band->pi, PHY_HOLD_FOR_SCAN, false);
|
||||
}
|
||||
|
||||
void wlc_associate_upd(struct wlc_info *wlc, bool state)
|
||||
{
|
||||
wlc->pub->associated = state;
|
||||
wlc->cfg->associated = state;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -563,6 +563,7 @@ extern void wlc_enable_mac(struct wlc_info *wlc);
|
|||
extern u16 wlc_rate_shm_offset(struct wlc_info *wlc, u8 rate);
|
||||
extern u32 wlc_get_rspec_history(struct wlc_bsscfg *cfg);
|
||||
extern u32 wlc_get_current_highest_rate(struct wlc_bsscfg *cfg);
|
||||
extern void wlc_associate_upd(struct wlc_info *wlc, bool state);
|
||||
extern void wlc_scan_start(struct wlc_info *wlc);
|
||||
extern void wlc_scan_stop(struct wlc_info *wlc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user