]> Pileus Git - ~andy/linux/commitdiff
mwifiex: remove unused radio_on variable and macros
authorMarc Yang <yangyang@marvell.com>
Tue, 29 Mar 2011 00:55:43 +0000 (17:55 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:05 +0000 (16:20 -0400)
The radio_on variable is defined but never used.

Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/init.c
drivers/net/wireless/mwifiex/ioctl.h
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_ioctl.c

index 6593e071dea8a8e46a8d660c171c2c2f5450b95a..2d9339145e08c4bc2c62e3c9e0113a697abc0356 100644 (file)
@@ -875,9 +875,6 @@ struct host_cmd_ds_802_11_snmp_mib {
        u8 value[1];
 } __packed;
 
-#define RADIO_ON                                0x01
-#define RADIO_OFF                               0x00
-
 struct mwifiex_rate_scope {
        __le16 type;
        __le16 length;
index bad436d605908028b7c6e03b21484499baa707a7..6fcdaa9b429401f387e56d6a49d2ced01204c78f 100644 (file)
@@ -234,7 +234,6 @@ static void mwifiex_init_adapter(struct mwifiex_adapter *adapter)
        memset(adapter->bcn_buf, 0, sizeof(adapter->bcn_buf));
        adapter->bcn_buf_end = adapter->bcn_buf;
 
-       adapter->radio_on = RADIO_ON;
        adapter->multiple_dtim = 1;
 
        adapter->local_listen_interval = 0;     /* default value in firmware
index 7e0d3160f610cfb85cd3eac317714883c7b94fa0..d01160aa1db82c2142b886d2f89112255cf16120 100644 (file)
@@ -193,7 +193,6 @@ struct mwifiex_bss_info {
        u32 bss_chan;
        u32 region_code;
        u32 media_connected;
-       u32 radio_on;
        u32 max_power_level;
        u32 min_power_level;
        u32 adhoc_state;
index 12b9a364d52b298edaa51e91892d7970f93a54aa..c26f70441f830d9b9e6444536d283dfe04ab9038 100644 (file)
@@ -611,7 +611,6 @@ struct mwifiex_adapter {
        u16 curr_tx_buf_size;
        u32 ioport;
        enum MWIFIEX_HARDWARE_STATUS hw_status;
-       u16 radio_on;
        u16 number_of_antenna;
        u32 fw_cap_info;
        /* spin lock for interrupt handling */
index abad07e012f9412bc3eb2a89e265d0424d0cd2c9..b163507b1fe0b17bf1393f21adb25d8dcf41e41c 100644 (file)
@@ -790,9 +790,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv,
        /* Connection status */
        info->media_connected = priv->media_connected;
 
-       /* Radio status */
-       info->radio_on = adapter->radio_on;
-
        /* Tx power information */
        info->max_power_level = priv->max_tx_power_level;
        info->min_power_level = priv->min_tx_power_level;