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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:17 +0000 (07:52 +0200)
commit7867e6d82fc9c35e02ae407641f5603bdbcc1a6f
treed548253cd0459f94a161aaab95362d8b1c569350
parent1001e8ec25db887240b0f397c1f5050fbb207502
iwlwifi: mvm: make sure internal station has a valid id

[ Upstream commit df65c8d1728adee2a52c30287d33da83a8c87480 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c