Skip to content
Permalink
Browse files

Free station id after firmware deletes it.

For 88W8964.

Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Nov 15, 2017
1 parent 760f7bf commit 466368f9454250c2bc024795600d92564553d9bb
Showing with 5 additions and 2 deletions.
  1. +3 −1 hif/pcie/rx_ndp.c
  2. +2 −1 mac80211.c
@@ -492,10 +492,12 @@ void pcie_rx_recv_ndp(unsigned long data)
case RXRING_CASE_SLOW_DEL_DONE:
case RXRING_CASE_DROP:
case RXRING_CASE_SLOW_BAD_PN:
if (ctrl_case == RXRING_CASE_SLOW_DEL_DONE)
if (ctrl_case == RXRING_CASE_SLOW_DEL_DONE) {
wiphy_info(hw->wiphy,
"staid %d deleted\n",
stnid);
utils_free_stnid(priv, stnid);
}
dev_kfree_skb_any(psk_buff);
break;
case RXRING_CASE_SLOW_BAD_MIC:
@@ -533,7 +533,8 @@ static int mwl_mac80211_sta_remove(struct ieee80211_hw *hw,
else
mwl_hif_set_sta_id(hw, sta, false, false);

utils_free_stnid(priv, sta_info->stnid);
if (priv->chip_type != MWL8964)
utils_free_stnid(priv, sta_info->stnid);
if (vif->type == NL80211_IFTYPE_STATION)
utils_free_stnid(priv, sta_info->sta_stnid);

0 comments on commit 466368f

Please sign in to comment.
You can’t perform that action at this time.