OSDN Git Service

iwlwifi: mvm: add queues after adding station
authorSara Sharon <sara.sharon@intel.com>
Tue, 15 Nov 2016 08:20:48 +0000 (10:20 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Apr 2017 19:20:51 +0000 (22:20 +0300)
commitc5a719ee575ccace15eb9ad49c13c2750946c303
tree00f475ead3abc82f36ee105d26783a30bd6fd21e
parentd6be9c1d0b2e9b1d4722de2d6e5dabeff56c88a5
iwlwifi: mvm: add queues after adding station

Currently aux & broadcast queues are added before calling add
station, which results with a SCD_QUEUE_CFG command sent with
a station id unknown yet to fw.
While this works for pre-a000 firmware, the a000 fw requires
the order to be reversed.
The reason the change is only for a000 devices and not for
previous devices is that we cannot reverse the order since
the tfd_queue_mask containing the aux queue will cause FW to
assert on adding a queue mask with a queue that is not enabled.
This is not a problem in a000 fw since the tfd_queue_mask was
removed from the add sta API.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c