diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-09 17:46:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:36 -0400 |
commit | 728103794316f7ff8d98bc2ce044aff7a260ee21 (patch) | |
tree | 2addb2b483f2a74e30314c486abeb7ab86521ecb /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | e4030a2f40a9575bccc71c3e156ca78c7d6fded6 (diff) |
rt2x00: Rename config_preamble() to config_erp()
Rename config_preamble() to config_erp() and cleanup argument
list by putting it all into a single structure.
This will make the function more meaningful and easier to
expand later. This second option is mostly intended to make
the patch "mac80211: proper short-slot handling" from Johannes Berg
easier to apply for rt2x00.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
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 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 76a2a7c118b2..0a11c27d603b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -436,17 +436,15 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
436 | } | 436 | } |
437 | 437 | ||
438 | /* | 438 | /* |
439 | * When the preamble mode has changed, we should perform additional | 439 | * When the erp information has changed, we should perform |
440 | * configuration steps. For all other changes we are already done. | 440 | * additional configuration steps. For all other changes we are done. |
441 | */ | 441 | */ |
442 | if (changes & BSS_CHANGED_ERP_PREAMBLE) { | 442 | if (changes & BSS_CHANGED_ERP_PREAMBLE) |
443 | rt2x00lib_config_preamble(rt2x00dev, intf, | 443 | rt2x00lib_config_erp(rt2x00dev, intf, bss_conf); |
444 | bss_conf->use_short_preamble); | ||
445 | 444 | ||
446 | spin_lock(&intf->lock); | 445 | spin_lock(&intf->lock); |
447 | memcpy(&intf->conf, bss_conf, sizeof(*bss_conf)); | 446 | memcpy(&intf->conf, bss_conf, sizeof(*bss_conf)); |
448 | spin_unlock(&intf->lock); | 447 | spin_unlock(&intf->lock); |
449 | } | ||
450 | } | 448 | } |
451 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); | 449 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); |
452 | 450 | ||