]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix bug in mwifiex_save_curr_bcn()
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 28 Apr 2011 02:13:13 +0000 (19:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Apr 2011 18:53:23 +0000 (14:53 -0400)
commitf989c312f30a4a45415c2267c9a5553f8fb7e632
treecef6a9d5df5873454c3fde6d161f598b61a3cb61
parente5c0cd1b865a52914898727d8a022246ae334623
mwifiex: fix bug in mwifiex_save_curr_bcn()

Since timestamp in beacon buffer keeps changing all the time,
the memcmp check in mwifiex_save_curr_bcn() is redundant.
Remove that memcmp check and also avoid freeing and allocation
of buffer if required beacon buffer size is same as previous one.

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/scan.c