ath9k: Reconfigure beacons on getting a notification from mac80211
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
3c45726576
commit
1f7d6cbfa2
|
@ -2253,9 +2253,11 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
|
|||
}
|
||||
}
|
||||
|
||||
if ((conf->changed & IEEE80211_IFCC_BEACON) &&
|
||||
((vif->type == NL80211_IFTYPE_ADHOC) ||
|
||||
(vif->type == NL80211_IFTYPE_AP))) {
|
||||
if ((vif->type == NL80211_IFTYPE_ADHOC) ||
|
||||
(vif->type == NL80211_IFTYPE_AP)) {
|
||||
if ((conf->changed & IEEE80211_IFCC_BEACON) ||
|
||||
(conf->changed & IEEE80211_IFCC_BEACON_ENABLED &&
|
||||
conf->enable_beacon)) {
|
||||
/*
|
||||
* Allocate and setup the beacon frame.
|
||||
*
|
||||
|
@ -2272,6 +2274,7 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
|
|||
|
||||
ath_beacon_sync(sc, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for WLAN_CAPABILITY_PRIVACY ? */
|
||||
if ((avp->av_opmode != NL80211_IFTYPE_STATION)) {
|
||||
|
|
Loading…
Reference in New Issue