staging: wfx: remove unnecessary conditions in wfx_bss_info_changed()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 10 Apr 2020 13:32:32 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 12:42:46 +0000 (14:42 +0200)
commit974dfbf8fe411dff2e77d15ed8ec54777d13452c
treeae3a405ec1b2cf64203cafe46eaf02fbb2997a20
parent23d57c152cef193c96598bb449f3f7e83c4aae2e
staging: wfx: remove unnecessary conditions in wfx_bss_info_changed()

wfx_bss_info_changed() update ERP and CQM related stuff. Thus, it check
the flags BSS_CHANGED_ERP_* and BSS_CHANGED_CQM.

It also update ERP and CQM on join and leave by checking the flag
BSS_CHANGED_ASSOC. This check is useless. Mac80211 already do that job
and set necessary flags as expected.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200410133239.438347-13-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/sta.c