OSDN Git Service

iwlwifi: mvm: include configured sniffer AID in radiotap
authorJohannes Berg <johannes.berg@intel.com>
Tue, 20 Nov 2018 16:58:46 +0000 (17:58 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:32 +0000 (16:10 +0200)
commit9bf13bee2d74a3b7bc0a59b1af7ad5f0a37f2176
tree575f14a9fcdb810e28a4ccb403429b99b7ccc2b9
parent81444538ac586613e7ac3f04a85be2c22bc8a550
iwlwifi: mvm: include configured sniffer AID in radiotap

In order to make more sense out of the captured radiotap data e.g.
when the configured AID changes, add the currently configured AID
to the radiotap data as a vendor extension field.

This is made race-free by updating the included value from inside
the RX path (using a notification wait) for the command response
from the firmware, which thus means it's serialized with frame RX.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c