OSDN Git Service

iwlwifi: mvm: cleanup references to aggregation count limit
authorSara Sharon <sara.sharon@intel.com>
Mon, 16 Oct 2017 06:45:10 +0000 (09:45 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Nov 2017 09:56:07 +0000 (11:56 +0200)
commit0ec9257b0a2ceb4eeec552684b390b06705bbad7
treeb33f34c1e661f2c5a518f6023dc38304d6040c07
parentb67ce55dbd964f1e80652007bfb83d09c393300d
iwlwifi: mvm: cleanup references to aggregation count limit

Currently the code is mixing defines and is inconsistent.
When enabling a queue, we usually configure the scheduler
with IWL_FRAME_LIMIT - 64.
When sending to firmware the rate scaling, we limit aggregation
to LINK_QUAL_AGG_FRAME_LIMIT_DEF - 63, due to a scheduler bug.
Given that, clean up the following:
- Fix a stray queue enablement with LINK_QUAL_AGG_FRAME_LIMIT_DEF.
- Change the comparison that tests if queue needs to be reconfigured
  to be compared directly to how it was configured.
  This also saves the redundant round down of the buffer size just
  for the sake of comparing it, making the code more readable.
- Better document gen2 logic

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