iwlwifi: mvm: don't leak a station when we drain
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 20 Jan 2014 13:21:26 +0000 (15:21 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 30 Jan 2014 17:29:02 +0000 (19:29 +0200)
commit9bb0c1adc52ca3c7026811a6630a3c78eec1f135
treedbc0af3ce6f4db64dece51ca837b072532da51cb
parent6e0bbe5ee845e185d237ec4f266b7be495c50eb6
iwlwifi: mvm: don't leak a station when we drain

We had a bug that prevented us from removing a station
after we entered the drain flow:

We assign sta to be NULL if it was an error value.
Then we tested it against -EBUSY, but forget to retrieve
the value again from mvm->fw_id_to_mac_id[sta_id].

Due to this bug, we ended up never removing the STA from
the firmware. This led to an firmware assert when we remove
the GO vif.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/tx.c
This page took 0.028472 seconds and 5 git commands to generate.