Skip to content

Commit

Permalink
Free station id after firmware deletes it.
Browse files Browse the repository at this point in the history
For 88W8964.

Signed-off-by: David Lin <[email protected]>
  • Loading branch information
yuhhaurlin committed Nov 15, 2017
1 parent 760f7bf commit 466368f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hif/pcie/rx_ndp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 466368f

Please sign in to comment.