rt2x00: Deprecate max_sta_intf field of struct rt2x00_ops.
authorGertjan van Wingerde <gwingerde@gmail.com>
Sun, 23 Sep 2012 18:22:53 +0000 (20:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Sep 2012 19:57:43 +0000 (15:57 -0400)
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>
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00mac.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c

index 6458ab87717b625669074e9a637bf138e8e57af0..e3a2d9070cf655acdfb9758a525c5cc7a71575a9 100644 (file)
@@ -1789,7 +1789,6 @@ static const struct data_queue_desc rt2400pci_queue_atim = {
 
 static const struct rt2x00_ops rt2400pci_ops = {
        .name                   = KBUILD_MODNAME,
-       .max_sta_intf           = 1,
        .max_ap_intf            = 1,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index 68bca1456cdaf39433d361a767e78010100e29ce..479d756e275b388fc5d17b77bde4303e27117e48 100644 (file)
@@ -2081,7 +2081,6 @@ static const struct data_queue_desc rt2500pci_queue_atim = {
 
 static const struct rt2x00_ops rt2500pci_ops = {
        .name                   = KBUILD_MODNAME,
-       .max_sta_intf           = 1,
        .max_ap_intf            = 1,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index f95b5516c50aadaa5172bf25e0b41ba31b4e6b03..a12e84f892be1d9b13d1762a0369a7841af32645 100644 (file)
@@ -1896,7 +1896,6 @@ static const struct data_queue_desc rt2500usb_queue_atim = {
 
 static const struct rt2x00_ops rt2500usb_ops = {
        .name                   = KBUILD_MODNAME,
-       .max_sta_intf           = 1,
        .max_ap_intf            = 1,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index 391e08fa054bc1ea2bc48710a69287f175231a34..27829e1e2e38964b2085dc84e30f618b3f72f97e 100644 (file)
@@ -1088,7 +1088,6 @@ static const struct data_queue_desc rt2800pci_queue_bcn = {
 static const struct rt2x00_ops rt2800pci_ops = {
        .name                   = KBUILD_MODNAME,
        .drv_data_size          = sizeof(struct rt2800_drv_data),
-       .max_sta_intf           = 1,
        .max_ap_intf            = 8,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index 603b65d6f28bfcb25b9a57222595a0fa6cbfff70..c9e9370eb789c04ec91fd97a2a85d8d21977a144 100644 (file)
@@ -870,7 +870,6 @@ static const struct data_queue_desc rt2800usb_queue_bcn = {
 static const struct rt2x00_ops rt2800usb_ops = {
        .name                   = KBUILD_MODNAME,
        .drv_data_size          = sizeof(struct rt2800_drv_data),
-       .max_sta_intf           = 1,
        .max_ap_intf            = 8,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index 49375c86c33414cc132cc0cc099bb1636a4a9fc6..09bf01ce65f4b36e539f81005cc5ee170288194a 100644 (file)
@@ -656,7 +656,6 @@ struct rt2x00lib_ops {
 struct rt2x00_ops {
        const char *name;
        const unsigned int drv_data_size;
-       const unsigned int max_sta_intf;
        const unsigned int max_ap_intf;
        const unsigned int eeprom_size;
        const unsigned int rf_size;
index c3d0f2f87b6987ba0df7989e1516c007a9ef6479..2f98d3d4a979a0f5602a311dccfb57d66d51a5c3 100644 (file)
@@ -243,10 +243,9 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw,
                        return -ENOBUFS;
 
                /*
-                * Check if we exceeded the maximum amount
-                * of supported interfaces.
+                * We don't support multiple STA interfaces.
                 */
-               if (rt2x00dev->intf_sta_count >= rt2x00dev->ops->max_sta_intf)
+               if (rt2x00dev->intf_sta_count)
                        return -ENOBUFS;
 
                break;
index 2673e058caaf62b7a3540f6f4b2156ba2a5e1ecf..d6582a2fa3534879614a23dd29435e747a0cca0c 100644 (file)
@@ -3045,7 +3045,6 @@ static const struct data_queue_desc rt61pci_queue_bcn = {
 
 static const struct rt2x00_ops rt61pci_ops = {
        .name                   = KBUILD_MODNAME,
-       .max_sta_intf           = 1,
        .max_ap_intf            = 4,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,
index cfa9f37cccc20917f4b9be9fff67890d9e611287..e5eb43b3eee74f94db85349436f0ba1e15925059 100644 (file)
@@ -2382,7 +2382,6 @@ static const struct data_queue_desc rt73usb_queue_bcn = {
 
 static const struct rt2x00_ops rt73usb_ops = {
        .name                   = KBUILD_MODNAME,
-       .max_sta_intf           = 1,
        .max_ap_intf            = 4,
        .eeprom_size            = EEPROM_SIZE,
        .rf_size                = RF_SIZE,