Commit 739e42f4 authored by Johannes Berg's avatar Johannes Berg

iwlwifi: dvm: apply beacon changes immediately

If the AP/GO beacon changes, apply such a change
immediately, otherwise the AP/GO beacon can be
stale for a long time.
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9b26b500
...@@ -1545,10 +1545,9 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw, ...@@ -1545,10 +1545,9 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
bss_conf->bssid); bss_conf->bssid);
} }
if (changes & BSS_CHANGED_BEACON && vif->type == NL80211_IFTYPE_ADHOC && if (changes & BSS_CHANGED_BEACON && priv->beacon_ctx == ctx) {
priv->beacon_ctx) {
if (iwlagn_update_beacon(priv, vif)) if (iwlagn_update_beacon(priv, vif))
IWL_ERR(priv, "Error sending IBSS beacon\n"); IWL_ERR(priv, "Error updating beacon\n");
} }
mutex_unlock(&priv->mutex); mutex_unlock(&priv->mutex);
......
Markdown is supported
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