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/rt2500pci.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/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index d85e1a44d5cd..a46206c69760 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -307,10 +307,8 @@ static void rt2500pci_config_intf(struct rt2x00_dev *rt2x00dev, | |||
307 | conf->bssid, sizeof(conf->bssid)); | 307 | conf->bssid, sizeof(conf->bssid)); |
308 | } | 308 | } |
309 | 309 | ||
310 | static int rt2500pci_config_preamble(struct rt2x00_dev *rt2x00dev, | 310 | static int rt2500pci_config_erp(struct rt2x00_dev *rt2x00dev, |
311 | const int short_preamble, | 311 | struct rt2x00lib_erp *erp) |
312 | const int ack_timeout, | ||
313 | const int ack_consume_time) | ||
314 | { | 312 | { |
315 | int preamble_mask; | 313 | int preamble_mask; |
316 | u32 reg; | 314 | u32 reg; |
@@ -318,11 +316,13 @@ static int rt2500pci_config_preamble(struct rt2x00_dev *rt2x00dev, | |||
318 | /* | 316 | /* |
319 | * When short preamble is enabled, we should set bit 0x08 | 317 | * When short preamble is enabled, we should set bit 0x08 |
320 | */ | 318 | */ |
321 | preamble_mask = short_preamble << 3; | 319 | preamble_mask = erp->short_preamble << 3; |
322 | 320 | ||
323 | rt2x00pci_register_read(rt2x00dev, TXCSR1, ®); | 321 | rt2x00pci_register_read(rt2x00dev, TXCSR1, ®); |
324 | rt2x00_set_field32(®, TXCSR1_ACK_TIMEOUT, ack_timeout); | 322 | rt2x00_set_field32(®, TXCSR1_ACK_TIMEOUT, |
325 | rt2x00_set_field32(®, TXCSR1_ACK_CONSUME_TIME, ack_consume_time); | 323 | erp->ack_timeout); |
324 | rt2x00_set_field32(®, TXCSR1_ACK_CONSUME_TIME, | ||
325 | erp->ack_consume_time); | ||
326 | rt2x00pci_register_write(rt2x00dev, TXCSR1, reg); | 326 | rt2x00pci_register_write(rt2x00dev, TXCSR1, reg); |
327 | 327 | ||
328 | rt2x00pci_register_read(rt2x00dev, ARCSR2, ®); | 328 | rt2x00pci_register_read(rt2x00dev, ARCSR2, ®); |
@@ -1911,7 +1911,7 @@ static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = { | |||
1911 | .kick_tx_queue = rt2500pci_kick_tx_queue, | 1911 | .kick_tx_queue = rt2500pci_kick_tx_queue, |
1912 | .fill_rxdone = rt2500pci_fill_rxdone, | 1912 | .fill_rxdone = rt2500pci_fill_rxdone, |
1913 | .config_intf = rt2500pci_config_intf, | 1913 | .config_intf = rt2500pci_config_intf, |
1914 | .config_preamble = rt2500pci_config_preamble, | 1914 | .config_erp = rt2500pci_config_erp, |
1915 | .config = rt2500pci_config, | 1915 | .config = rt2500pci_config, |
1916 | }; | 1916 | }; |
1917 | 1917 | ||