diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-07-13 23:09:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-17 15:11:33 -0400 |
commit | 006606c0bb387ed8d97bd9915b0b64efd7f84d0d (patch) | |
tree | 5e18e8c3b9419e7d8ce242f0b948714af5d56561 /drivers/net/wireless/mwifiex/cfp.c | |
parent | 1f45b39ececbdfb13a7bf4d2f644d2e89a8b415f (diff) |
mwifiex: remove unnecessary code in data rate configuration
1) Remove unnecessary wrapper functions.
2) Currently we don't have command to set Tx data rate, so
mwifiex_rate_ioctl_set_rate_value() function and related code
can be removed.
3) "ds_rate" filled by mwifiex_ret_tx_rate_cfg() 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 'drivers/net/wireless/mwifiex/cfp.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfp.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/net/wireless/mwifiex/cfp.c b/drivers/net/wireless/mwifiex/cfp.c index 560871b0e236..f69300f93f42 100644 --- a/drivers/net/wireless/mwifiex/cfp.c +++ b/drivers/net/wireless/mwifiex/cfp.c | |||
@@ -167,23 +167,6 @@ u32 mwifiex_index_to_data_rate(struct mwifiex_private *priv, u8 index, | |||
167 | } | 167 | } |
168 | 168 | ||
169 | /* | 169 | /* |
170 | * This function maps a data rate value into corresponding index in supported | ||
171 | * rates table. | ||
172 | */ | ||
173 | u8 mwifiex_data_rate_to_index(u32 rate) | ||
174 | { | ||
175 | u16 *ptr; | ||
176 | |||
177 | if (rate) { | ||
178 | ptr = memchr(mwifiex_data_rates, rate, | ||
179 | sizeof(mwifiex_data_rates)); | ||
180 | if (ptr) | ||
181 | return (u8) (ptr - mwifiex_data_rates); | ||
182 | } | ||
183 | return 0; | ||
184 | } | ||
185 | |||
186 | /* | ||
187 | * This function returns the current active data rates. | 170 | * This function returns the current active data rates. |
188 | * | 171 | * |
189 | * The result may vary depending upon connection status. | 172 | * The result may vary depending upon connection status. |
@@ -277,20 +260,6 @@ mwifiex_is_rate_auto(struct mwifiex_private *priv) | |||
277 | } | 260 | } |
278 | 261 | ||
279 | /* | 262 | /* |
280 | * This function converts rate bitmap into rate index. | ||
281 | */ | ||
282 | int mwifiex_get_rate_index(u16 *rate_bitmap, int size) | ||
283 | { | ||
284 | int i; | ||
285 | |||
286 | for (i = 0; i < size * 8; i++) | ||
287 | if (rate_bitmap[i / 16] & (1 << (i % 16))) | ||
288 | return i; | ||
289 | |||
290 | return 0; | ||
291 | } | ||
292 | |||
293 | /* | ||
294 | * This function gets the supported data rates. | 263 | * This function gets the supported data rates. |
295 | * | 264 | * |
296 | * The function works in both Ad-Hoc and infra mode by printing the | 265 | * The function works in both Ad-Hoc and infra mode by printing the |