]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: copy nl80211 mgmt TX SKB for status
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Jun 2015 20:54:13 +0000 (22:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Jun 2015 11:07:55 +0000 (13:07 +0200)
commit156e2fb91b65ec66a5323e705f4974623023a665
treeccc9c12165a9d44b3fccbbd3193cd38d555a69dc
parent55c83e23d1ff76eb5079528a0a18aa28b06cb0fe
mac80211: copy nl80211 mgmt TX SKB for status

When we return the TX status for an nl80211 mgmt TX SKB, we
should also return the original frame with the status to
allow userspace to match up the submission (it could also
use the cookie but both ways are permissible.)

As TX SKBs could be encrypted, at least in the case of ANQP
while associated with the AP, copy the original SKB, store
it with an ACK frame ID and restructure the status path to
use that to return status with the original SKB. Otherwise,
userspace (in particular wpa_supplicant) will get confused.

Reported-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/status.c