Balaji Pothunoori
e9509697fd
mac80211: don't initiate TDLS connection if station is not associated to AP
...
[ Upstream commit 7ed5285396c257fd4070b1e29e7b2341aae2a1ce ]
Following call trace is observed while adding TDLS peer entry in driver
during TDLS setup.
Call Trace:
[<c1301476>] dump_stack+0x47/0x61
[<c10537d2>] __warn+0xe2/0x100
[<fa22415f>] ? sta_apply_parameters+0x49f/0x550 [mac80211]
[<c1053895>] warn_slowpath_null+0x25/0x30
[<fa22415f>] sta_apply_parameters+0x49f/0x550 [mac80211]
[<fa20ad42>] ? sta_info_alloc+0x1c2/0x450 [mac80211]
[<fa224623>] ieee80211_add_station+0xe3/0x160 [mac80211]
[<c1876fe3>] nl80211_new_station+0x273/0x420
[<c170f6d9>] genl_rcv_msg+0x219/0x3c0
[<c170f4c0>] ? genl_rcv+0x30/0x30
[<c170ee7e>] netlink_rcv_skb+0x8e/0xb0
[<c170f4ac>] genl_rcv+0x1c/0x30
[<c170e8aa>] netlink_unicast+0x13a/0x1d0
[<c170ec18>] netlink_sendmsg+0x2d8/0x390
[<c16c5acd>] sock_sendmsg+0x2d/0x40
[<c16c6369>] ___sys_sendmsg+0x1d9/0x1e0
Fixing this by allowing TDLS setup request only when we have completed
association.
Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-05 17:58:01 +01:00
..
2018-10-03 17:00:47 -07:00
2019-01-13 10:01:06 +01:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:44 +02:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:43 +02:00
2019-02-23 09:06:44 +01:00
2019-02-27 10:08:06 +01:00
2019-02-12 19:46:05 +01:00
2019-02-27 10:08:08 +01:00
2018-09-05 09:26:27 +02:00
2019-01-31 08:13:46 +01:00
2019-02-27 10:08:01 +01:00
2019-02-27 10:08:05 +01:00
2018-09-19 22:43:43 +02:00
2019-02-12 19:46:10 +01:00
2018-02-25 11:07:52 +01:00
2018-07-22 14:28:49 +02:00
2019-02-12 19:46:11 +01:00
2017-08-22 13:40:23 -07:00
2019-01-09 17:14:43 +01:00
2018-04-29 11:33:13 +02:00
2019-02-27 10:08:07 +01:00
2019-02-27 10:08:08 +01:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2018-06-11 22:49:19 +02:00
2018-06-16 09:45:14 +02:00
2019-02-06 17:31:33 +01:00
2018-12-01 09:42:51 +01:00
2019-03-05 17:58:01 +01:00
2018-09-09 19:55:52 +02:00
2018-02-22 15:42:28 +01:00
2017-10-21 01:56:38 +01:00
2019-02-27 10:08:08 +01:00
2018-10-18 09:16:18 +02:00
2018-08-09 12:16:38 +02:00
2019-02-06 17:31:32 +01:00
2018-09-29 03:06:01 -07:00
2018-07-22 14:28:49 +02:00
2019-01-31 08:13:41 +01:00
2019-02-27 10:08:06 +01:00
2017-11-02 11:10:55 +01:00
2017-11-01 12:19:03 +09:00
2018-08-24 13:09:13 +02:00
2019-02-12 19:46:10 +01:00
2018-05-16 10:10:26 +02:00
2019-02-06 17:31:32 +01:00
2019-02-12 19:46:10 +01:00
2019-02-20 10:20:48 +01:00
2019-02-27 10:08:07 +01:00
2019-01-09 17:14:46 +01:00
2018-07-22 14:28:47 +02:00
2019-02-23 09:06:43 +01:00
2017-08-07 14:48:48 -07:00
2019-01-23 08:09:51 +01:00
2018-12-05 19:41:11 +01:00
2017-11-02 10:04:46 -07:00
2019-02-23 09:06:42 +01:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:40 +01:00
2019-02-23 09:06:44 +01:00
2019-02-15 08:09:13 +01:00
2019-01-09 17:14:46 +01:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:49 +01:00