mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 00:29:10 +07:00
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>
This commit is contained in:
parent
16e8552afd
commit
d8d2f19feb
@ -865,14 +865,20 @@ static int mwifiex_ret_tdls_oper(struct mwifiex_private *priv,
|
|||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ACT_TDLS_DELETE:
|
case ACT_TDLS_DELETE:
|
||||||
if (reason)
|
if (reason) {
|
||||||
dev_err(priv->adapter->dev,
|
if (!node || reason == TDLS_ERR_LINK_NONEXISTENT)
|
||||||
"TDLS link delete for %pM failed: reason %d\n",
|
dev_dbg(priv->adapter->dev,
|
||||||
cmd_tdls_oper->peer_mac, reason);
|
"TDLS link delete for %pM failed: reason %d\n",
|
||||||
else
|
cmd_tdls_oper->peer_mac, reason);
|
||||||
|
else
|
||||||
|
dev_err(priv->adapter->dev,
|
||||||
|
"TDLS link delete for %pM failed: reason %d\n",
|
||||||
|
cmd_tdls_oper->peer_mac, reason);
|
||||||
|
} else {
|
||||||
dev_dbg(priv->adapter->dev,
|
dev_dbg(priv->adapter->dev,
|
||||||
"TDLS link config for %pM successful\n",
|
"TDLS link delete for %pM successful\n",
|
||||||
cmd_tdls_oper->peer_mac);
|
cmd_tdls_oper->peer_mac);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ACT_TDLS_CREATE:
|
case ACT_TDLS_CREATE:
|
||||||
if (reason) {
|
if (reason) {
|
||||||
|
Loading…
Reference in New Issue
Block a user