iwlwifi: remove sanity check
iwl_mac_beacon_update can only be called when the operating mode is IBSS, so it doesn't need to verify that again. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
This commit is contained in:
parent
b2f30e8bdd
commit
fbc66daa82
@ -2252,11 +2252,6 @@ int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (priv->iw_mode != NL80211_IFTYPE_ADHOC) {
|
||||
IWL_DEBUG_MAC80211(priv, "leave - not IBSS\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&priv->lock, flags);
|
||||
|
||||
if (priv->ibss_beacon)
|
||||
|
Loading…
x
Reference in New Issue
Block a user