diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2007-11-28 22:09:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:15 -0500 |
commit | 7762635547ad31ecb045e7073989e76ae13e6c54 (patch) | |
tree | 041e42e31702b2a0e9934baf7c395aa0c314fb63 /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | f58177b9c3f377eee31bac719bda87e1aab415ab (diff) |
iwl4965: add comments to rate scaling code
Add comments to rate scaling code.
Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 11ef1c0c5d0d..33eace757435 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -1488,6 +1488,7 @@ int iwl4965_rate_index_from_plcp(int plcp) | |||
1488 | { | 1488 | { |
1489 | int i = 0; | 1489 | int i = 0; |
1490 | 1490 | ||
1491 | /* 4965 HT rate format */ | ||
1491 | if (plcp & RATE_MCS_HT_MSK) { | 1492 | if (plcp & RATE_MCS_HT_MSK) { |
1492 | i = (plcp & 0xff); | 1493 | i = (plcp & 0xff); |
1493 | 1494 | ||
@@ -1501,6 +1502,8 @@ int iwl4965_rate_index_from_plcp(int plcp) | |||
1501 | if ((i >= IWL_FIRST_OFDM_RATE) && | 1502 | if ((i >= IWL_FIRST_OFDM_RATE) && |
1502 | (i <= IWL_LAST_OFDM_RATE)) | 1503 | (i <= IWL_LAST_OFDM_RATE)) |
1503 | return i; | 1504 | return i; |
1505 | |||
1506 | /* 4965 legacy rate format, search for match in table */ | ||
1504 | } else { | 1507 | } else { |
1505 | for (i = 0; i < ARRAY_SIZE(iwl4965_rates); i++) | 1508 | for (i = 0; i < ARRAY_SIZE(iwl4965_rates); i++) |
1506 | if (iwl4965_rates[i].plcp == (plcp &0xFF)) | 1509 | if (iwl4965_rates[i].plcp == (plcp &0xFF)) |