]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/rtl8180_sa2400.c
atlx: remove flash vendor parameter
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / rtl8180_sa2400.c
index e08ace7b1cb7ac3657d42375cbeea60edbbda4c3..0311b4ea124c63f302d031ace1cabbbbc371ebd1 100644 (file)
@@ -80,8 +80,9 @@ static void sa2400_rf_set_channel(struct ieee80211_hw *dev,
                                  struct ieee80211_conf *conf)
 {
        struct rtl8180_priv *priv = dev->priv;
-       u32 txpw = priv->channels[conf->channel - 1].val & 0xFF;
-       u32 chan = sa2400_chan[conf->channel - 1];
+       int channel = ieee80211_frequency_to_channel(conf->channel->center_freq);
+       u32 txpw = priv->channels[channel - 1].hw_value & 0xFF;
+       u32 chan = sa2400_chan[channel - 1];
 
        write_sa2400(dev, 7, txpw);