diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-01-24 23:50:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-27 14:57:03 -0500 |
commit | c4f3b9725ed476adbcaf1c49d882ab541bc4214c (patch) | |
tree | a46fbb97f8df8cf8faa8bb4f1b3ee7851a83a155 /drivers/net/wireless/mwifiex/cfg80211.c | |
parent | 2690e1bb35e97a3b15f0064e9176cd2ec61c2511 (diff) |
mwifiex: update BSS parameters in dump_station_info()
This enables user to check beacon interval, DTIM period, short slot
time and short preamble information using "iw dev mlan0 link" command
when station is in connected state.
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/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 00f10059ecb4..6fef4925d13a 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -557,6 +557,23 @@ mwifiex_dump_station_info(struct mwifiex_private *priv, | |||
557 | /* bit rate is in 500 kb/s units. Convert it to 100kb/s units */ | 557 | /* bit rate is in 500 kb/s units. Convert it to 100kb/s units */ |
558 | sinfo->txrate.legacy = rate.rate * 5; | 558 | sinfo->txrate.legacy = rate.rate * 5; |
559 | 559 | ||
560 | if (priv->bss_mode == NL80211_IFTYPE_STATION) { | ||
561 | sinfo->filled |= STATION_INFO_BSS_PARAM; | ||
562 | sinfo->bss_param.flags = 0; | ||
563 | if (priv->curr_bss_params.bss_descriptor.cap_info_bitmap & | ||
564 | WLAN_CAPABILITY_SHORT_PREAMBLE) | ||
565 | sinfo->bss_param.flags |= | ||
566 | BSS_PARAM_FLAGS_SHORT_PREAMBLE; | ||
567 | if (priv->curr_bss_params.bss_descriptor.cap_info_bitmap & | ||
568 | WLAN_CAPABILITY_SHORT_SLOT_TIME) | ||
569 | sinfo->bss_param.flags |= | ||
570 | BSS_PARAM_FLAGS_SHORT_SLOT_TIME; | ||
571 | sinfo->bss_param.dtim_period = | ||
572 | priv->curr_bss_params.bss_descriptor.dtim_period; | ||
573 | sinfo->bss_param.beacon_interval = | ||
574 | priv->curr_bss_params.bss_descriptor.beacon_period; | ||
575 | } | ||
576 | |||
560 | return ret; | 577 | return ret; |
561 | } | 578 | } |
562 | 579 | ||