]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: put current TX power in interface info
authorRafał Miłecki <zajec5@gmail.com>
Mon, 31 Aug 2015 20:59:38 +0000 (22:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:21:27 +0000 (15:21 +0200)
commitcb17d74e09703752ad94de712f552ae8672c93e4
tree537d25e2089a590f57b38f687584de53894b6e81
parent28632f1ce9aba4be0c2031d49b68aa1c4779442a
nl80211: put current TX power in interface info

Many drivers implement reading current TX power (using either cfg80211
or ieee80211 op) but userspace can't get it using nl80211. Right now the
only way to access it is to call some wext ioctl.
Let's put TX power in interface info reply (callback is wdev specific)
just like we do with current channel.
To be consistent (e.g. NL80211_CMD_SET_WIPHY) let's use mBm as na unit.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c