b43: drop B43_DEFAULT_CHANNEL
authorRafał Miłecki <zajec5@gmail.com>
Sat, 31 May 2014 18:49:33 +0000 (20:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Jun 2014 19:49:12 +0000 (15:49 -0400)
It was never used, b43_switch_channel is always called with hw_value
(from mac80211) or whatever get_default_chan returns.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_common.c
drivers/net/wireless/b43/phy_common.h

index 08244b3b327e5f98f06b5d5db8943d8e624bb3a8..ac4cf2b8aca882c2937acc0b6752d16c839443d3 100644 (file)
@@ -408,9 +408,6 @@ int b43_switch_channel(struct b43_wldev *dev, unsigned int new_channel)
        u16 channelcookie, savedcookie;
        int err;
 
-       if (new_channel == B43_DEFAULT_CHANNEL)
-               new_channel = phy->ops->get_default_chan(dev);
-
        /* First we set the channel radio code to prevent the
         * firmware from sending ghost packets.
         */
index 4ad6240d9ff40e53557b4d29b27788b3eb9602d5..9a92df46ae844981fa4c30d8a3c8107273c58f9f 100644 (file)
@@ -400,10 +400,6 @@ void b43_phy_take_out_of_reset(struct b43_wldev *dev);
  * b43_switch_channel - Switch to another channel
  */
 int b43_switch_channel(struct b43_wldev *dev, unsigned int new_channel);
-/**
- * B43_DEFAULT_CHANNEL - Switch to the default channel.
- */
-#define B43_DEFAULT_CHANNEL    UINT_MAX
 
 /**
  * b43_software_rfkill - Turn the radio ON or OFF in software.