Commit 26aaa4a0 authored by Bing Zhao's avatar Bing Zhao Committed by John W. Linville

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: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8e92f2ac
...@@ -134,7 +134,6 @@ struct mwifiex_ver_ext { ...@@ -134,7 +134,6 @@ struct mwifiex_ver_ext {
struct mwifiex_bss_info { struct mwifiex_bss_info {
u32 bss_mode; u32 bss_mode;
struct mwifiex_802_11_ssid ssid; struct mwifiex_802_11_ssid ssid;
u32 scan_table_idx;
u32 bss_chan; u32 bss_chan;
u32 region_code; u32 region_code;
u32 media_connected; u32 media_connected;
......
...@@ -376,7 +376,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, ...@@ -376,7 +376,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv,
{ {
struct mwifiex_adapter *adapter = priv->adapter; struct mwifiex_adapter *adapter = priv->adapter;
struct mwifiex_bssdescriptor *bss_desc; struct mwifiex_bssdescriptor *bss_desc;
s32 tbl_idx;
if (!info) if (!info)
return -1; return -1;
...@@ -394,17 +393,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, ...@@ -394,17 +393,6 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv,
info->region_code = adapter->region_code; 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->media_connected = priv->media_connected;
info->max_power_level = priv->max_tx_power_level; info->max_power_level = priv->max_tx_power_level;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment