]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/wireless/iwlwifi/iwl-tx.c
mac80211: use nl80211 interface types
[mirror_ubuntu-bionic-kernel.git] / drivers / net / wireless / iwlwifi / iwl-tx.c
index 9d5bcf46cbe91585affc687ac97e6b64215ff722..e9feca4033f93834d39b88f6b3d85a9df1682e3c 100644 (file)
@@ -814,10 +814,10 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
 
        /* drop all data frame if we are not associated */
        if (ieee80211_is_data(fc) &&
-           (priv->iw_mode != IEEE80211_IF_TYPE_MNTR ||
+           (priv->iw_mode != NL80211_IFTYPE_MONITOR ||
            !(info->flags & IEEE80211_TX_CTL_INJECTED)) && /* packet injection */
            (!iwl_is_associated(priv) ||
-            ((priv->iw_mode == IEEE80211_IF_TYPE_STA) && !priv->assoc_id) ||
+            ((priv->iw_mode == NL80211_IFTYPE_STATION) && !priv->assoc_id) ||
             !priv->assoc_station_added)) {
                IWL_DEBUG_DROP("Dropping - !iwl_is_associated\n");
                goto drop_unlock;