diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2012-01-11 23:06:11 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:21:12 -0500 |
commit | 9da9a3b29ba6a9a98e437f24576f13cbe259997b (patch) | |
tree | aa59108d6e5ef4ad27f82f6c5a3f3c77893ae43e /drivers/net/wireless/mwifiex/txrx.c | |
parent | cebcab9e18725d8249f607af787ee92107a665b7 (diff) |
mwifiex: use bss_type and bss_num to retrieve priv
Current implementation, for retrieving priv from adapter,
uses bss_index. In multi interface environment supporting
different types, bss_index may not be unique.
Use bss_type along with bss_num to retrieve the priv.
bss_index is removed with this change.
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/txrx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/txrx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/txrx.c b/drivers/net/wireless/mwifiex/txrx.c index d9274a1b77ac..9a6eacc9d6f9 100644 --- a/drivers/net/wireless/mwifiex/txrx.c +++ b/drivers/net/wireless/mwifiex/txrx.c | |||
@@ -48,7 +48,8 @@ int mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, | |||
48 | if (!priv) | 48 | if (!priv) |
49 | priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); | 49 | priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); |
50 | 50 | ||
51 | rx_info->bss_index = priv->bss_index; | 51 | rx_info->bss_num = priv->bss_num; |
52 | rx_info->bss_type = priv->bss_type; | ||
52 | 53 | ||
53 | return mwifiex_process_sta_rx_packet(adapter, skb); | 54 | return mwifiex_process_sta_rx_packet(adapter, skb); |
54 | } | 55 | } |
@@ -130,7 +131,8 @@ int mwifiex_write_data_complete(struct mwifiex_adapter *adapter, | |||
130 | return 0; | 131 | return 0; |
131 | 132 | ||
132 | tx_info = MWIFIEX_SKB_TXCB(skb); | 133 | tx_info = MWIFIEX_SKB_TXCB(skb); |
133 | priv = mwifiex_bss_index_to_priv(adapter, tx_info->bss_index); | 134 | priv = mwifiex_get_priv_by_id(adapter, tx_info->bss_num, |
135 | tx_info->bss_type); | ||
134 | if (!priv) | 136 | if (!priv) |
135 | goto done; | 137 | goto done; |
136 | 138 | ||