]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iwlwifi: mvm: quietly accept non-sta assoc response frames
authorJohannes Berg <johannes.berg@intel.com>
Mon, 12 Jun 2017 09:24:06 +0000 (11:24 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 29 Jun 2017 10:29:32 +0000 (13:29 +0300)
commite6835942a7414ef4fd07b59851ad1fca7560dec1
treea93b799418d29bac6d55db72a466001e566d0f11
parent4f2210ee8498faa3499a927f0a40027ff972ec3a
iwlwifi: mvm: quietly accept non-sta assoc response frames

When hostapd adds a station, it does so before sending the association
response frame, so that it can indicate the correct status code in the
response.

However, when this then fails, or the association response already is
a reject for some other reason, then there's no station entry and thus
no per-station management queue to send the response on and it must be
sent on the probe response queue. The code should therefore not warn.

In theory, we could check and warn if the status code is success, but
that seems excessive, so just relax the check to allow any association
response frames.

Fixes: 3ee0f0e23e4f ("iwlwifi: mvm: fix DQA AP mode station assumption")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c