iwlwifi: mvm: make sure internal station has a valid id
authorAvraham Stern <avraham.stern@intel.com>
Tue, 6 Mar 2018 12:10:49 +0000 (14:10 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Mar 2018 08:50:37 +0000 (10:50 +0200)
commitdf65c8d1728adee2a52c30287d33da83a8c87480
treeb0d38f01b4b9f04111aef7c7897e2fd4dc90b239
parent4b387906b1c3692bb790388c335515c0cf098a23
iwlwifi: mvm: make sure internal station has a valid id

If the driver failed to resume from D3, it is possible that it has
no valid aux station. In such case, fw restart will end up in sending
station related commands with an invalid station id, which will
result in an assert.

Fix this by allocating a new station id for the aux station if it
does not have a valid id even in the case of fw restart.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c