aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h3
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00mac.c9
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c2
6 files changed, 16 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index 96eaf5f4dc68..1adca7a1b9dc 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1574,7 +1574,6 @@ static const struct ieee80211_ops rt2400pci_mac80211_ops = {
1574 .config_interface = rt2x00mac_config_interface, 1574 .config_interface = rt2x00mac_config_interface,
1575 .configure_filter = rt2x00mac_configure_filter, 1575 .configure_filter = rt2x00mac_configure_filter,
1576 .get_stats = rt2x00mac_get_stats, 1576 .get_stats = rt2x00mac_get_stats,
1577 .set_retry_limit = rt2400pci_set_retry_limit,
1578 .bss_info_changed = rt2x00mac_bss_info_changed, 1577 .bss_info_changed = rt2x00mac_bss_info_changed,
1579 .conf_tx = rt2400pci_conf_tx, 1578 .conf_tx = rt2400pci_conf_tx,
1580 .get_tx_stats = rt2x00mac_get_tx_stats, 1579 .get_tx_stats = rt2x00mac_get_tx_stats,
@@ -1603,6 +1602,7 @@ static const struct rt2x00lib_ops rt2400pci_rt2x00_ops = {
1603 .config_intf = rt2400pci_config_intf, 1602 .config_intf = rt2400pci_config_intf,
1604 .config_erp = rt2400pci_config_erp, 1603 .config_erp = rt2400pci_config_erp,
1605 .config = rt2400pci_config, 1604 .config = rt2400pci_config,
1605 .set_retry_limit = rt2400pci_set_retry_limit,
1606}; 1606};
1607 1607
1608static const struct data_queue_desc rt2400pci_queue_rx = { 1608static const struct data_queue_desc rt2400pci_queue_rx = {
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 8b772ab613e4..85b0387f46eb 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -1874,7 +1874,6 @@ static const struct ieee80211_ops rt2500pci_mac80211_ops = {
1874 .config_interface = rt2x00mac_config_interface, 1874 .config_interface = rt2x00mac_config_interface,
1875 .configure_filter = rt2x00mac_configure_filter, 1875 .configure_filter = rt2x00mac_configure_filter,
1876 .get_stats = rt2x00mac_get_stats, 1876 .get_stats = rt2x00mac_get_stats,
1877 .set_retry_limit = rt2500pci_set_retry_limit,
1878 .bss_info_changed = rt2x00mac_bss_info_changed, 1877 .bss_info_changed = rt2x00mac_bss_info_changed,
1879 .conf_tx = rt2x00mac_conf_tx, 1878 .conf_tx = rt2x00mac_conf_tx,
1880 .get_tx_stats = rt2x00mac_get_tx_stats, 1879 .get_tx_stats = rt2x00mac_get_tx_stats,
@@ -1903,6 +1902,7 @@ static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = {
1903 .config_intf = rt2500pci_config_intf, 1902 .config_intf = rt2500pci_config_intf,
1904 .config_erp = rt2500pci_config_erp, 1903 .config_erp = rt2500pci_config_erp,
1905 .config = rt2500pci_config, 1904 .config = rt2500pci_config,
1905 .set_retry_limit = rt2500pci_set_retry_limit,
1906}; 1906};
1907 1907
1908static const struct data_queue_desc rt2500pci_queue_rx = { 1908static const struct data_queue_desc rt2500pci_queue_rx = {
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 8ec8f7e9ec64..0887e895d5c1 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -599,6 +599,9 @@ struct rt2x00lib_ops {
599#define CONFIG_UPDATE_SLOT_TIME ( 1 << 5 ) 599#define CONFIG_UPDATE_SLOT_TIME ( 1 << 5 )
600#define CONFIG_UPDATE_BEACON_INT ( 1 << 6 ) 600#define CONFIG_UPDATE_BEACON_INT ( 1 << 6 )
601#define CONFIG_UPDATE_ALL 0xffff 601#define CONFIG_UPDATE_ALL 0xffff
602
603 int (*set_retry_limit) (struct ieee80211_hw *hw,
604 u32 short_limit, u32 long_limit);
602}; 605};
603 606
604/* 607/*
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
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 45f69f83552c..08eb896ae36c 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -2724,7 +2724,6 @@ static const struct ieee80211_ops rt61pci_mac80211_ops = {
2724 .configure_filter = rt2x00mac_configure_filter, 2724 .configure_filter = rt2x00mac_configure_filter,
2725 .set_key = rt2x00mac_set_key, 2725 .set_key = rt2x00mac_set_key,
2726 .get_stats = rt2x00mac_get_stats, 2726 .get_stats = rt2x00mac_get_stats,
2727 .set_retry_limit = rt61pci_set_retry_limit,
2728 .bss_info_changed = rt2x00mac_bss_info_changed, 2727 .bss_info_changed = rt2x00mac_bss_info_changed,
2729 .conf_tx = rt61pci_conf_tx, 2728 .conf_tx = rt61pci_conf_tx,
2730 .get_tx_stats = rt2x00mac_get_tx_stats, 2729 .get_tx_stats = rt2x00mac_get_tx_stats,
@@ -2757,6 +2756,7 @@ static const struct rt2x00lib_ops rt61pci_rt2x00_ops = {
2757 .config_intf = rt61pci_config_intf, 2756 .config_intf = rt61pci_config_intf,
2758 .config_erp = rt61pci_config_erp, 2757 .config_erp = rt61pci_config_erp,
2759 .config = rt61pci_config, 2758 .config = rt61pci_config,
2759 .set_retry_limit = rt61pci_set_retry_limit,
2760}; 2760};
2761 2761
2762static const struct data_queue_desc rt61pci_queue_rx = { 2762static const struct data_queue_desc rt61pci_queue_rx = {
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 336fecb04c46..7f89782a34e4 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -2315,7 +2315,6 @@ static const struct ieee80211_ops rt73usb_mac80211_ops = {
2315 .configure_filter = rt2x00mac_configure_filter, 2315 .configure_filter = rt2x00mac_configure_filter,
2316 .set_key = rt2x00mac_set_key, 2316 .set_key = rt2x00mac_set_key,
2317 .get_stats = rt2x00mac_get_stats, 2317 .get_stats = rt2x00mac_get_stats,
2318 .set_retry_limit = rt73usb_set_retry_limit,
2319 .bss_info_changed = rt2x00mac_bss_info_changed, 2318 .bss_info_changed = rt2x00mac_bss_info_changed,
2320 .conf_tx = rt73usb_conf_tx, 2319 .conf_tx = rt73usb_conf_tx,
2321 .get_tx_stats = rt2x00mac_get_tx_stats, 2320 .get_tx_stats = rt2x00mac_get_tx_stats,
@@ -2347,6 +2346,7 @@ static const struct rt2x00lib_ops rt73usb_rt2x00_ops = {
2347 .config_intf = rt73usb_config_intf, 2346 .config_intf = rt73usb_config_intf,
2348 .config_erp = rt73usb_config_erp, 2347 .config_erp = rt73usb_config_erp,
2349 .config = rt73usb_config, 2348 .config = rt73usb_config,
2349 .set_retry_limit = rt73usb_set_retry_limit,
2350}; 2350};
2351 2351
2352static const struct data_queue_desc rt73usb_queue_rx = { 2352static const struct data_queue_desc rt73usb_queue_rx = {