diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-14 13:17:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:14 -0400 |
commit | 9124b07740c51cbc6e358dd0c4abc6ee8ded084d (patch) | |
tree | 5746885ca90399588f0735aa1a5511648f0be329 /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | 525181891fb5ed323b6ba0f141c422f1395acfb9 (diff) |
mac80211: make retry limits part of hw config
Instead of having a separate callback, use the HW config callback
with a new flag to change retry limits.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index da7b49a364ff..931183369f07 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -349,6 +349,15 @@ int rt2x00mac_config(struct ieee80211_hw *hw, u32 changed) | |||
349 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) | 349 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) |
350 | return 0; | 350 | return 0; |
351 | 351 | ||
352 | if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS) { | ||
353 | rt2x00dev->ops->lib->set_retry_limit(hw, | ||
354 | conf->short_frame_max_tx_count, | ||
355 | conf->long_frame_max_tx_count); | ||
356 | } | ||
357 | changed &= ~IEEE80211_CONF_CHANGE_RETRY_LIMITS; | ||
358 | if (!changed) | ||
359 | return 0; | ||
360 | |||
352 | /* | 361 | /* |
353 | * Only change device state when the radio is enabled. It does not | 362 | * Only change device state when the radio is enabled. It does not |
354 | * matter what parameters we have configured when the radio is disabled | 363 | * matter what parameters we have configured when the radio is disabled |