]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mwifiex: do not explicitly disable TDLS link during teardown
authorAvinash Patil <patila@marvell.com>
Thu, 13 Nov 2014 16:24:14 +0000 (21:54 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Nov 2014 20:32:14 +0000 (15:32 -0500)
When Teardown event from FW is indicated to userspace, userspace
would trigger tdls_oper handler to disable TDLS link.
We need not do this explicitly here.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_event.c

index f1c240eca0cdae2e6364f67e0aab150497afed2b..0efd6f0ffd3837dd47aabe6a3c983c01d2dfa6de 100644 (file)
@@ -163,9 +163,6 @@ 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;