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)
commit030fe7974f48bd86bb706ec05188ebab0cb7af80
treecef6a9d5df5873454c3fde6d161f598b61a3cb61
parenta46b7b5c13b9ecfe2b4e045e06aaec644dcf55d8
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