diff options
author | Shengzhen Li <[email protected]> | 2016-06-06 13:02:38 -0400 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2016-07-05 16:29:24 +0300 |
commit | 3ee712857958c27f697b33fa520fdc51e7ffea88 (patch) | |
tree | 370ef4b0fe203caa471dd9fd65ec7adbcecf169c /tools/perf/scripts/python/check-perf-trace.py | |
parent | 7d54bacadce17fc8042f8b32b0c930a187388ae9 (diff) |
mwifiex: add get_antenna support for cfg80211
Since commit de3bb771f471 ("cfg80211: add more warnings for inconsistent
ops") the wireless core warns if a driver implements a cfg80211 callback
but doesn't implements the inverse operation.
The mwifiex driver defines a .set_antenna handler but not a .get_antenna
so this not only makes the core to print a warning when creating a new
wiphy but also the antenna isn't reported to user-space apps such as iw.
This patch queries the antenna to the firmware so is properly reported to
user-space. With this patch, the wireless core does not warn anymore and:
$ iw phy phy0 info | grep Antennas
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Signed-off-by: Shengzhen Li <[email protected]>
Signed-off-by: Amitkumar Karwar <[email protected]>
[javier: expand the commit message]
Signed-off-by: Javier Martinez Canillas <[email protected]>
Tested-by: Enric Balletbo i Serra <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions