Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1078bc9 authored by Avinash Patil's avatar Avinash Patil Committed by John W. Linville
Browse files

mwifiex: delete TDLS link upon Teardown event



If userspace application does not take care of TDLS teardown
event, TDLS link would be present in driver database and thus
driver would send such packets on direct link while peer has
already severed link causing data traffic failure. Disable TDLS
link upon teardown event so as to ensure this does not happen.

Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d8d2f19f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason_code)
static int mwifiex_parse_tdls_event(struct mwifiex_private *priv,
				    struct sk_buff *event_skb)
{
	int ret = 0;
	struct mwifiex_adapter *adapter = priv->adapter;
	struct mwifiex_sta_node *sta_ptr;
	struct mwifiex_tdls_generic_event *tdls_evt =
@@ -162,12 +163,15 @@ static int mwifiex_parse_tdls_event(struct mwifiex_private *priv,
					   NL80211_TDLS_TEARDOWN,
					   le16_to_cpu(tdls_evt->u.reason_code),
					   GFP_KERNEL);
		ret = mwifiex_tdls_oper(priv, tdls_evt->peer_mac,
					MWIFIEX_TDLS_DISABLE_LINK);
		queue_work(adapter->workqueue, &adapter->main_work);
		break;
	default:
		break;
	}

	return 0;
	return ret;
}

/*