]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
iwlwifi: remove sanity check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jan 2010 15:31:07 +0000 (07:31 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Wed, 10 Mar 2010 00:05:17 +0000 (16:05 -0800)
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>
drivers/net/wireless/iwlwifi/iwl-core.c

index 4365e853f4b4a349826a81afc3c727d478214657..5fa1da1f59c9303469609932eeaa2ac36b733b06 100644 (file)
@@ -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)