diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-09-23 14:22:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-25 15:57:43 -0400 |
commit | 3e4c4151e56ff367fb1487ea79134eea74104077 (patch) | |
tree | be677a3f904881307385a91c98ca62bf7e284373 /drivers/net/wireless/rt2x00 | |
parent | fd0fc5218dc31d446fd108a6a571702a7c9bec29 (diff) |
rt2x00: Deprecate max_sta_intf field of struct rt2x00_ops.
All drivers set this value to 1, so there is no need (currently) to let
drivers set this.
Therefor, remove the field; we can always add it back when it is needed.
Inspired by an earlier patch from Paul Fertser.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 1 |
9 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 6458ab87717b..e3a2d9070cf6 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1789,7 +1789,6 @@ static const struct data_queue_desc rt2400pci_queue_atim = { | |||
1789 | 1789 | ||
1790 | static const struct rt2x00_ops rt2400pci_ops = { | 1790 | static const struct rt2x00_ops rt2400pci_ops = { |
1791 | .name = KBUILD_MODNAME, | 1791 | .name = KBUILD_MODNAME, |
1792 | .max_sta_intf = 1, | ||
1793 | .max_ap_intf = 1, | 1792 | .max_ap_intf = 1, |
1794 | .eeprom_size = EEPROM_SIZE, | 1793 | .eeprom_size = EEPROM_SIZE, |
1795 | .rf_size = RF_SIZE, | 1794 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 68bca1456cda..479d756e275b 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -2081,7 +2081,6 @@ static const struct data_queue_desc rt2500pci_queue_atim = { | |||
2081 | 2081 | ||
2082 | static const struct rt2x00_ops rt2500pci_ops = { | 2082 | static const struct rt2x00_ops rt2500pci_ops = { |
2083 | .name = KBUILD_MODNAME, | 2083 | .name = KBUILD_MODNAME, |
2084 | .max_sta_intf = 1, | ||
2085 | .max_ap_intf = 1, | 2084 | .max_ap_intf = 1, |
2086 | .eeprom_size = EEPROM_SIZE, | 2085 | .eeprom_size = EEPROM_SIZE, |
2087 | .rf_size = RF_SIZE, | 2086 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index f95b5516c50a..a12e84f892be 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1896,7 +1896,6 @@ static const struct data_queue_desc rt2500usb_queue_atim = { | |||
1896 | 1896 | ||
1897 | static const struct rt2x00_ops rt2500usb_ops = { | 1897 | static const struct rt2x00_ops rt2500usb_ops = { |
1898 | .name = KBUILD_MODNAME, | 1898 | .name = KBUILD_MODNAME, |
1899 | .max_sta_intf = 1, | ||
1900 | .max_ap_intf = 1, | 1899 | .max_ap_intf = 1, |
1901 | .eeprom_size = EEPROM_SIZE, | 1900 | .eeprom_size = EEPROM_SIZE, |
1902 | .rf_size = RF_SIZE, | 1901 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 391e08fa054b..27829e1e2e38 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -1088,7 +1088,6 @@ static const struct data_queue_desc rt2800pci_queue_bcn = { | |||
1088 | static const struct rt2x00_ops rt2800pci_ops = { | 1088 | static const struct rt2x00_ops rt2800pci_ops = { |
1089 | .name = KBUILD_MODNAME, | 1089 | .name = KBUILD_MODNAME, |
1090 | .drv_data_size = sizeof(struct rt2800_drv_data), | 1090 | .drv_data_size = sizeof(struct rt2800_drv_data), |
1091 | .max_sta_intf = 1, | ||
1092 | .max_ap_intf = 8, | 1091 | .max_ap_intf = 8, |
1093 | .eeprom_size = EEPROM_SIZE, | 1092 | .eeprom_size = EEPROM_SIZE, |
1094 | .rf_size = RF_SIZE, | 1093 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 603b65d6f28b..c9e9370eb789 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -870,7 +870,6 @@ static const struct data_queue_desc rt2800usb_queue_bcn = { | |||
870 | static const struct rt2x00_ops rt2800usb_ops = { | 870 | static const struct rt2x00_ops rt2800usb_ops = { |
871 | .name = KBUILD_MODNAME, | 871 | .name = KBUILD_MODNAME, |
872 | .drv_data_size = sizeof(struct rt2800_drv_data), | 872 | .drv_data_size = sizeof(struct rt2800_drv_data), |
873 | .max_sta_intf = 1, | ||
874 | .max_ap_intf = 8, | 873 | .max_ap_intf = 8, |
875 | .eeprom_size = EEPROM_SIZE, | 874 | .eeprom_size = EEPROM_SIZE, |
876 | .rf_size = RF_SIZE, | 875 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 49375c86c334..09bf01ce65f4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -656,7 +656,6 @@ struct rt2x00lib_ops { | |||
656 | struct rt2x00_ops { | 656 | struct rt2x00_ops { |
657 | const char *name; | 657 | const char *name; |
658 | const unsigned int drv_data_size; | 658 | const unsigned int drv_data_size; |
659 | const unsigned int max_sta_intf; | ||
660 | const unsigned int max_ap_intf; | 659 | const unsigned int max_ap_intf; |
661 | const unsigned int eeprom_size; | 660 | const unsigned int eeprom_size; |
662 | const unsigned int rf_size; | 661 | const unsigned int rf_size; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index c3d0f2f87b69..2f98d3d4a979 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -243,10 +243,9 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, | |||
243 | return -ENOBUFS; | 243 | return -ENOBUFS; |
244 | 244 | ||
245 | /* | 245 | /* |
246 | * Check if we exceeded the maximum amount | 246 | * We don't support multiple STA interfaces. |
247 | * of supported interfaces. | ||
248 | */ | 247 | */ |
249 | if (rt2x00dev->intf_sta_count >= rt2x00dev->ops->max_sta_intf) | 248 | if (rt2x00dev->intf_sta_count) |
250 | return -ENOBUFS; | 249 | return -ENOBUFS; |
251 | 250 | ||
252 | break; | 251 | break; |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 2673e058caaf..d6582a2fa353 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -3045,7 +3045,6 @@ static const struct data_queue_desc rt61pci_queue_bcn = { | |||
3045 | 3045 | ||
3046 | static const struct rt2x00_ops rt61pci_ops = { | 3046 | static const struct rt2x00_ops rt61pci_ops = { |
3047 | .name = KBUILD_MODNAME, | 3047 | .name = KBUILD_MODNAME, |
3048 | .max_sta_intf = 1, | ||
3049 | .max_ap_intf = 4, | 3048 | .max_ap_intf = 4, |
3050 | .eeprom_size = EEPROM_SIZE, | 3049 | .eeprom_size = EEPROM_SIZE, |
3051 | .rf_size = RF_SIZE, | 3050 | .rf_size = RF_SIZE, |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index cfa9f37cccc2..e5eb43b3eee7 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2382,7 +2382,6 @@ static const struct data_queue_desc rt73usb_queue_bcn = { | |||
2382 | 2382 | ||
2383 | static const struct rt2x00_ops rt73usb_ops = { | 2383 | static const struct rt2x00_ops rt73usb_ops = { |
2384 | .name = KBUILD_MODNAME, | 2384 | .name = KBUILD_MODNAME, |
2385 | .max_sta_intf = 1, | ||
2386 | .max_ap_intf = 4, | 2385 | .max_ap_intf = 4, |
2387 | .eeprom_size = EEPROM_SIZE, | 2386 | .eeprom_size = EEPROM_SIZE, |
2388 | .rf_size = RF_SIZE, | 2387 | .rf_size = RF_SIZE, |