diff options
author | Bing Zhao <bzhao@marvell.com> | 2011-07-22 05:25:58 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 20:29:20 +0200 |
commit | 26aaa4a0e923326560286e567b9fbf8429d5ef2b (patch) | |
tree | c1977e7b9f87344922795496dda67a7b4df2f56c /drivers/net/wireless/mwifiex/sta_ioctl.c | |
parent | libertas_usb: use USB interface as parent device (diff) | |
download | linux-26aaa4a0e923326560286e567b9fbf8429d5ef2b.tar.xz linux-26aaa4a0e923326560286e567b9fbf8429d5ef2b.zip |
mwifiex: remove redundant variable scan_table_idx
mwifiex_get_bss_info() routine updates variable 'info->scan_table_idx'
but it is never used.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 10ef9e9dfefe..fd764b3c6751 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c @@ -376,7 +376,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, { struct mwifiex_adapter *adapter = priv->adapter; struct mwifiex_bssdescriptor *bss_desc; - s32 tbl_idx; if (!info) return -1; @@ -394,17 +393,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, info->region_code = adapter->region_code; - /* Scan table index if connected */ - info->scan_table_idx = 0; - if (priv->media_connected) { - tbl_idx = - mwifiex_find_ssid_in_list(priv, &bss_desc->ssid, - bss_desc->mac_address, - priv->bss_mode); - if (tbl_idx >= 0) - info->scan_table_idx = tbl_idx; - } - info->media_connected = priv->media_connected; info->max_power_level = priv->max_tx_power_level; |