Balaji Pothunoori
39aabcb7dc
mac80211: don't initiate TDLS connection if station is not associated to AP
[ Upstream commit 7ed5285396 ]
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-23 08:44:20 +01:00
..
2015-05-28 11:23:20 +08:00
2015-01-27 11:07:35 +01:00
2015-08-13 11:31:45 +02:00
2015-01-27 11:09:13 +01:00
2015-05-28 11:23:20 +08:00
2015-01-27 11:06:09 +01:00
2015-05-28 11:23:20 +08:00
2015-01-27 11:10:13 +01:00
2017-05-20 14:27:03 +02:00
2017-05-20 14:27:03 +02:00
2019-03-23 08:44:20 +01:00
2015-07-17 15:38:12 +02:00
2014-11-04 13:18:21 +01:00
2015-09-29 15:56:50 +02:00
2010-12-13 15:23:29 -05:00
2015-09-22 15:21:25 +02:00
2014-04-09 14:49:43 +02:00
2015-10-21 10:08:22 +02:00
2018-01-17 09:35:25 +01:00
2014-04-09 14:49:43 +02:00
2017-05-20 14:27:03 +02:00
2017-05-20 14:27:03 +02:00
2015-10-21 10:08:22 +02:00
2015-03-30 10:48:26 +02:00
2018-10-10 08:52:11 +02:00
2017-11-30 08:37:27 +00:00
2018-12-13 09:21:37 +01:00
2015-08-14 17:49:53 +02:00
2018-09-26 08:35:06 +02:00
2015-07-17 15:38:01 +02:00
2015-05-11 19:16:04 +02:00
2015-05-05 14:21:56 +02:00
2018-10-10 08:52:11 +02:00
2015-10-14 18:40:26 +02:00
2018-10-10 08:52:10 +02:00
2015-11-17 15:49:25 +01:00
2017-11-30 08:37:27 +00:00
2015-07-17 15:47:11 +02:00
2017-11-30 08:37:27 +00:00
2017-12-20 10:04:52 +01:00
2016-03-03 15:07:26 -08:00
2014-04-09 14:49:43 +02:00
2018-12-21 14:09:51 +01:00
2015-10-21 10:08:22 +02:00
2017-10-05 09:41:44 +02:00
2017-03-15 09:57:14 +08:00
2015-11-03 10:56:42 +01:00
2015-07-17 15:50:02 +02:00
2015-09-29 15:56:47 +02:00
2015-09-29 15:56:47 +02:00
2016-03-16 08:43:00 -07:00
2015-04-01 20:44:32 +02:00
2016-03-16 08:42:59 -07:00
2015-04-01 20:44:33 +02:00
2019-03-23 08:44:19 +01:00
2016-03-03 15:07:26 -08:00
2014-12-17 15:45:17 +01:00
2017-10-21 17:09:04 +02:00
2016-07-27 09:47:27 -07:00
2018-12-13 09:21:37 +01:00
2015-11-03 10:42:47 +01:00
2013-12-18 10:33:06 +01:00
2011-07-08 11:11:19 -04:00
2015-04-07 12:32:09 -04:00
2015-04-07 12:32:09 -04:00
2017-05-20 14:27:03 +02:00
2019-02-20 10:13:19 +01:00
2018-09-05 09:18:33 +02:00
2015-12-15 13:16:47 +01:00
2018-05-16 10:06:46 +02:00
2012-03-13 14:54:16 -04:00
2014-11-19 18:45:36 +01:00
2014-10-22 10:42:09 +02:00
2018-05-16 10:06:46 +02:00
2015-01-27 11:10:13 +01:00