cfg80211: Add airtime statistics and settings
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 19 Dec 2018 01:02:07 +0000 (17:02 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 19 Jan 2019 08:31:35 +0000 (09:31 +0100)
commit36647055b37ec78e9068f470f14e7cd75c001c22
tree5edec13644467b2c6c56d9e32a722b61800397ea
parent1866760096bf40bcf6977a9076b3026598bc12ee
cfg80211: Add airtime statistics and settings

This adds TX airtime statistics to the cfg80211 station dump (to go along
with the RX info already present), and adds a new parameter to set the
airtime weight of each station. The latter allows userspace to implement
policies for different stations by varying their weights.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
[rmanohar@codeaurora.org: fixed checkpatch warnings]
Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
[move airtime weight != 0 check into policy]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c