diff options
author | Avinash Patil <patila@marvell.com> | 2014-05-22 01:02:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-22 14:04:37 -0400 |
commit | d8d2f19feb169d3a87d67f9056ef06b7a9b56f98 (patch) | |
tree | 2551c69b1fc8025faf4782a6e24f1f19eaf546a4 /drivers/net/wireless/mwifiex/sta_cmdresp.c | |
parent | 16e8552afd5ca3aa6d09b4903d89255e4cb8c66b (diff) |
mwifiex: silence TDLS link delete failure for nonexistent link
If TDLS link delete command fails because of non-existent peer
or TDLS peer is absent from driver's entry, it means link was
already deleted. In such case print debug messages with lower
severity.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_cmdresp.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmdresp.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers/net/wireless/mwifiex/sta_cmdresp.c index bfebb0144df5..577f2979ed8f 100644 --- a/drivers/net/wireless/mwifiex/sta_cmdresp.c +++ b/drivers/net/wireless/mwifiex/sta_cmdresp.c | |||
@@ -865,14 +865,20 @@ static int mwifiex_ret_tdls_oper(struct mwifiex_private *priv, | |||
865 | 865 | ||
866 | switch (action) { | 866 | switch (action) { |
867 | case ACT_TDLS_DELETE: | 867 | case ACT_TDLS_DELETE: |
868 | if (reason) | 868 | if (reason) { |
869 | dev_err(priv->adapter->dev, | 869 | if (!node || reason == TDLS_ERR_LINK_NONEXISTENT) |
870 | "TDLS link delete for %pM failed: reason %d\n", | 870 | dev_dbg(priv->adapter->dev, |
871 | cmd_tdls_oper->peer_mac, reason); | 871 | "TDLS link delete for %pM failed: reason %d\n", |
872 | else | 872 | cmd_tdls_oper->peer_mac, reason); |
873 | else | ||
874 | dev_err(priv->adapter->dev, | ||
875 | "TDLS link delete for %pM failed: reason %d\n", | ||
876 | cmd_tdls_oper->peer_mac, reason); | ||
877 | } else { | ||
873 | dev_dbg(priv->adapter->dev, | 878 | dev_dbg(priv->adapter->dev, |
874 | "TDLS link config for %pM successful\n", | 879 | "TDLS link delete for %pM successful\n", |
875 | cmd_tdls_oper->peer_mac); | 880 | cmd_tdls_oper->peer_mac); |
881 | } | ||
876 | break; | 882 | break; |
877 | case ACT_TDLS_CREATE: | 883 | case ACT_TDLS_CREATE: |
878 | if (reason) { | 884 | if (reason) { |