提交 fe46630c 编写于 作者: S Sergey Matyukevich 提交者: Greg Kroah-Hartman

qtnfmac: drop error reports for out-of-bounds key indexes

[ Upstream commit 35da3fe63b8647ce3cc52fccdf186a60710815fb ]

On disconnect wireless core attempts to remove all the supported keys.
Following cfg80211_ops conventions, firmware returns -ENOENT code
for the out-of-bound key indexes. This is a normal behavior,
so no need to report errors for this case.
Signed-off-by: NSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 4ecc631d
...@@ -521,9 +521,16 @@ static int qtnf_del_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -521,9 +521,16 @@ static int qtnf_del_key(struct wiphy *wiphy, struct net_device *dev,
int ret; int ret;
ret = qtnf_cmd_send_del_key(vif, key_index, pairwise, mac_addr); ret = qtnf_cmd_send_del_key(vif, key_index, pairwise, mac_addr);
if (ret) if (ret) {
pr_err("VIF%u.%u: failed to delete key: idx=%u pw=%u\n", if (ret == -ENOENT) {
vif->mac->macid, vif->vifid, key_index, pairwise); pr_debug("VIF%u.%u: key index %d out of bounds\n",
vif->mac->macid, vif->vifid, key_index);
} else {
pr_err("VIF%u.%u: failed to delete key: idx=%u pw=%u\n",
vif->mac->macid, vif->vifid,
key_index, pairwise);
}
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册