cfg80211: remove enum ieee80211_band
[cascardo/linux.git] / drivers / net / wireless / ath / carl9170 / tx.c
index ae86a60..2bf04c9 100644 (file)
@@ -720,12 +720,12 @@ static void carl9170_tx_rate_tpc_chains(struct ar9170 *ar,
                        /* +1 dBm for HT40 */
                        *tpc += 2;
 
-                       if (info->band == IEEE80211_BAND_2GHZ)
+                       if (info->band == NL80211_BAND_2GHZ)
                                txpower = ar->power_2G_ht40;
                        else
                                txpower = ar->power_5G_ht40;
                } else {
-                       if (info->band == IEEE80211_BAND_2GHZ)
+                       if (info->band == NL80211_BAND_2GHZ)
                                txpower = ar->power_2G_ht20;
                        else
                                txpower = ar->power_5G_ht20;
@@ -734,7 +734,7 @@ static void carl9170_tx_rate_tpc_chains(struct ar9170 *ar,
                *phyrate = txrate->idx;
                *tpc += txpower[idx & 7];
        } else {
-               if (info->band == IEEE80211_BAND_2GHZ) {
+               if (info->band == NL80211_BAND_2GHZ) {
                        if (idx < 4)
                                txpower = ar->power_2G_cck;
                        else
@@ -797,7 +797,7 @@ static __le32 carl9170_tx_physet(struct ar9170 *ar,
                 * tmp |= cpu_to_le32(AR9170_TX_PHY_GREENFIELD);
                 */
        } else {
-               if (info->band == IEEE80211_BAND_2GHZ) {
+               if (info->band == NL80211_BAND_2GHZ) {
                        if (txrate->idx <= AR9170_TX_PHY_RATE_CCK_11M)
                                tmp |= cpu_to_le32(AR9170_TX_PHY_MOD_CCK);
                        else