mwifiex: cleanup work in scan.c
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 16 Dec 2011 05:00:37 +0000 (21:00 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Dec 2011 19:37:14 +0000 (14:37 -0500)
commit186630c2809bc87fba6e49896fa2279c43f512d2
tree400c4910c3177c54bfd2e3b1303fa5f19f21ccaa
parentd2182b69dcb6a68b1ef6070b2efd094e13dea3f1
mwifiex: cleanup work in scan.c

Scan type derived from IEEE80211_CHAN_PASSIVE_SCAN bit is a boolean
flag representing passive scanning. We should not again compare it
with driver specific macro MWIFIEX_SCAN_TYPE_PASSIVE to determine
passive or active scan. We can also avoid the use of local variable
by using the flag directly.

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