]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Add new sta_info getter by sta/vif addrs
authorToke Høiland-Jørgensen <toke@redhat.com>
Tue, 12 Nov 2019 13:08:35 +0000 (14:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Nov 2019 11:53:53 +0000 (12:53 +0100)
commit8c66995d4de94fc3e7106710c0c9c38bbb969170
treedc427d33af298d813eb9ec842aabf9c5118cb54e
parent6dc3269ae8b9b04190f3da9c5e47891a7263ccf8
mac80211: Add new sta_info getter by sta/vif addrs

In ieee80211_tx_status() we don't have an sdata struct when looking up the
destination sta. Instead, we just do a lookup by the vif addr that is the
source of the packet being completed. Factor this out into a new sta_info
getter helper, since we need to use it for accounting AQL as well.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20191112130835.382062-1-toke@redhat.com
[remove internal rcu_read_lock(), document instead]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/mac80211/status.c