Peter Große
bb23fbd8fb
mac80211: Fix setting TX power on monitor interfaces
...
[ Upstream commit 3a3713ec360138f806c6fc368d1de570f692b347 ]
Instead of calling ieee80211_recalc_txpower on monitor interfaces
directly, call it using the virtual monitor interface, if one exists.
In case of a single monitor interface given, reject setting TX power,
if no virtual monitor interface exists.
That being checked, don't warn in ieee80211_bss_info_change_notify,
after setting TX power on a monitor interface.
Fixes warning:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2193 at net/mac80211/driver-ops.h:167
ieee80211_bss_info_change_notify+0x111/0x190 Modules linked in: uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core
rndis_host cdc_ether usbnet mii tp_smapi(O) thinkpad_ec(O) ohci_hcd vboxpci(O)
vboxnetadp(O) vboxnetflt(O) v boxdrv(O) x86_pkg_temp_thermal kvm_intel kvm
irqbypass iwldvm iwlwifi ehci_pci ehci_hcd tpm_tis tpm_tis_core tpm CPU: 0
PID: 2193 Comm: iw Tainted: G O 4.12.12-gentoo #2 task:
ffff880186fd5cc0 task.stack: ffffc90001b54000 RIP:
0010:ieee80211_bss_info_change_notify+0x111/0x190 RSP: 0018:ffffc90001b57a10
EFLAGS: 00010246 RAX: 0000000000000006 RBX: ffff8801052ce840 RCX:
0000000000000064 RDX: 00000000fffffffc RSI: 0000000000040000 RDI:
ffff8801052ce840 RBP: ffffc90001b57a38 R08: 0000000000000062 R09:
0000000000000000 R10: ffff8802144b5000 R11: ffff880049dc4614 R12:
0000000000040000 R13: 0000000000000064 R14: ffff8802105f0760 R15:
ffffc90001b57b48 FS: 00007f92644b4580(0000) GS:ffff88021e200000(0000)
knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9263c109f0 CR3: 00000001df850000 CR4: 00000000000406f0
Call Trace:
ieee80211_recalc_txpower+0x33/0x40
ieee80211_set_tx_power+0x40/0x180
nl80211_set_wiphy+0x32e/0x950
Reported-by: Peter Große <pegro@friiks.de>
Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-12 12:32:15 +02:00
..
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:30 +01:00
2017-11-02 11:10:55 +01:00
2018-01-17 09:45:20 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-09 16:28:45 -07:00
2018-04-08 14:26:30 +02:00
2018-04-08 14:26:29 +02:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:17 +01:00
2017-11-30 08:40:45 +00:00
2018-03-31 18:10:42 +02:00
2017-08-09 16:57:38 -07:00
2018-03-31 18:10:40 +02:00
2018-02-25 11:07:52 +01:00
2017-10-18 09:12:40 +01:00
2017-11-11 15:45:09 +09:00
2017-06-16 11:48:40 -04:00
2017-08-22 13:40:23 -07:00
2018-03-31 18:10:40 +02:00
2017-11-01 12:19:03 +09:00
2018-04-08 14:26:29 +02:00
2018-04-12 12:32:11 +02:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2018-03-31 18:10:40 +02:00
2018-01-23 19:58:12 +01:00
2018-04-12 12:32:12 +02:00
2017-07-04 22:35:16 +01:00
2017-11-02 11:10:55 +01:00
2018-04-12 12:32:15 +02:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:28 +01:00
2017-10-21 01:56:38 +01:00
2018-04-08 14:26:29 +02:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2017-07-04 22:35:17 +01:00
2017-11-30 08:40:55 +00:00
2017-08-29 15:16:52 -07:00
2018-02-03 17:39:03 +01:00
2017-12-17 15:07:56 +01:00
2017-11-02 11:10:55 +01:00
2017-11-01 12:19:03 +09:00
2017-11-08 14:32:18 +09:00
2018-04-12 12:32:12 +02:00
2017-06-13 11:07:51 +02:00
2018-03-08 22:41:12 -08:00
2018-03-31 18:10:40 +02:00
2018-03-08 22:41:15 -08:00
2018-03-15 10:54:28 +01:00
2017-10-25 10:37:11 +09:00
2018-02-22 15:42:29 +01:00
2017-08-07 14:48:48 -07:00
2018-03-03 10:24:30 +01:00
2018-01-31 14:03:48 +01:00
2017-11-02 10:04:46 -07:00
2018-02-25 11:07:59 +01:00
2017-11-02 11:10:55 +01:00
2018-03-03 10:24:34 +01:00
2017-11-02 11:10:55 +01:00
2018-04-08 14:26:29 +02:00
2017-09-20 15:36:18 -07:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:23 +01:00