mwifiex: update correct dtim_period in dump_station()
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 3 Feb 2012 04:48:58 +0000 (20:48 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Feb 2012 19:55:54 +0000 (14:55 -0500)
commitcaf60a6c957e7a35837a41f845e57b4433e20276
treedc2170bbc80a9269b6183aef94f98af769e8bd06
parentf3c8d2591fa7278abe58ee0278a41d5b130d1718
mwifiex: update correct dtim_period in dump_station()

Earlier we were using dtim period extracted from scan response
buffer provided by FW in scan operation. But it is observed that
sometimes the buffer doesn't contain dtim period tlv, and wrong
value (0) was sent to user space.

After association FW will start listening to beacon frames of
connected AP and store dtim period. Therefore we can get it from
FW in dump_station() instead of using wrong value obtained in
scanning.

Redundant code after adapting new approach for dtim period is
also removed in this patch.

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>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/scan.c
drivers/net/wireless/mwifiex/sta_cmdresp.c
This page took 0.028523 seconds and 5 git commands to generate.