]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: add set sar_specs command
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 7 Oct 2021 08:56:15 +0000 (16:56 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Oct 2021 15:19:14 +0000 (17:19 +0200)
commitba4f75baaa1c0d7fdccabdb0bfa0487d1caaa963
tree7498b80aac98b138e83bf7b82cce5b81031d1c2b
parent50918cbb8e52ecae014f62617c8c342be960351b
iw: add set sar_specs command

Add set sar_specs command

usage: iw <phy> set sar_specs <sar type> <range index:sar power>*
e.g.
iw phy0 set sar_specs 0 0:100 1:90 2:80...
where sar type should correspond to wiphy's sar_capa,
and range index should be valid in wiphy's sar_capa.

For now, kernel sar type supports only 0 (NL80211_SAR_TYPE_POWER)
which means that the sar power limitation is specified in 0.25dBm unit.

Cc: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/20211007085615.40399-1-pkshih@realtek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
sar.c [new file with mode: 0644]