mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan
[linux-block.git] / drivers / net / wireless / rt2x00 / rt61pci.c
index f95792cfcf8922e17222fec2feddc34f5117c308..f85035cc836f1cff3eb1abf5125112e904ec874c 100644 (file)
@@ -847,7 +847,7 @@ static void rt61pci_config_lna_gain(struct rt2x00_dev *rt2x00dev,
        u16 eeprom;
        short lna_gain = 0;
 
-       if (libconf->conf->channel->band == IEEE80211_BAND_2GHZ) {
+       if (libconf->conf->chandef.chan->band == IEEE80211_BAND_2GHZ) {
                if (test_bit(CAPABILITY_EXTERNAL_LNA_BG, &rt2x00dev->cap_flags))
                        lna_gain += 14;