]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: mvm: Prevent setting assoc flag in MAC_CONTEXT_CMD
authorAlexander Bondar <alexander.bondar@intel.com>
Thu, 2 May 2013 13:34:48 +0000 (16:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:24 +0000 (12:52 -0700)
commit4b85315758a57b005008484f0eb72d3b092315b4
tree613a36b5e2fa67df5aaa094956cec9f61dccbee3
parent321964d0b629c6c7ed43bb4eee990bab1561d9b7
iwlwifi: mvm: Prevent setting assoc flag in MAC_CONTEXT_CMD

commit ba283927268d45184c17c37ff78d427e59026229 upstream.

In the normal flow first MAC_CONTEXT_CMD for particular interface is
never sent while associated. The exception is fw restart flow when
resuming from suspend when WoWLAN is enabled. In this case successive
"add" and "modify" MAC_CONTEXT_CMD commands may be sent with assoc flag
set what cause FW mal functioning. To prevent this never set assoc flag
in MAC_CONTEXT_CMD with action "add".

Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c