diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 9d5bcf46cbe9..e9feca4033f9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -814,10 +814,10 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) | |||
814 | 814 | ||
815 | /* drop all data frame if we are not associated */ | 815 | /* drop all data frame if we are not associated */ |
816 | if (ieee80211_is_data(fc) && | 816 | if (ieee80211_is_data(fc) && |
817 | (priv->iw_mode != IEEE80211_IF_TYPE_MNTR || | 817 | (priv->iw_mode != NL80211_IFTYPE_MONITOR || |
818 | !(info->flags & IEEE80211_TX_CTL_INJECTED)) && /* packet injection */ | 818 | !(info->flags & IEEE80211_TX_CTL_INJECTED)) && /* packet injection */ |
819 | (!iwl_is_associated(priv) || | 819 | (!iwl_is_associated(priv) || |
820 | ((priv->iw_mode == IEEE80211_IF_TYPE_STA) && !priv->assoc_id) || | 820 | ((priv->iw_mode == NL80211_IFTYPE_STATION) && !priv->assoc_id) || |
821 | !priv->assoc_station_added)) { | 821 | !priv->assoc_station_added)) { |
822 | IWL_DEBUG_DROP("Dropping - !iwl_is_associated\n"); | 822 | IWL_DEBUG_DROP("Dropping - !iwl_is_associated\n"); |
823 | goto drop_unlock; | 823 | goto drop_unlock; |