diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 11 |
2 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 57bdc153952f..7a23b00c6895 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -621,7 +621,6 @@ enum rt2x00_flags { | |||
621 | /* | 621 | /* |
622 | * Driver features | 622 | * Driver features |
623 | */ | 623 | */ |
624 | DRIVER_SUPPORT_MIXED_INTERFACES, | ||
625 | DRIVER_REQUIRE_FIRMWARE, | 624 | DRIVER_REQUIRE_FIRMWARE, |
626 | DRIVER_REQUIRE_BEACON_GUARD, | 625 | DRIVER_REQUIRE_BEACON_GUARD, |
627 | DRIVER_REQUIRE_ATIM_QUEUE, | 626 | DRIVER_REQUIRE_ATIM_QUEUE, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index e46d406637f7..e078e0ad0d06 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -201,13 +201,12 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, | |||
201 | return -ENODEV; | 201 | return -ENODEV; |
202 | 202 | ||
203 | /* | 203 | /* |
204 | * When we don't support mixed interfaces (a combination | 204 | * We don't support mixed combinations of sta and ap virtual |
205 | * of sta and ap virtual interfaces) then we can only | 205 | * interfaces. We can only add this interface when the rival |
206 | * add this interface when the rival interface count is 0. | 206 | * interface count is 0. |
207 | */ | 207 | */ |
208 | if (!test_bit(DRIVER_SUPPORT_MIXED_INTERFACES, &rt2x00dev->flags) && | 208 | if ((conf->type == IEEE80211_IF_TYPE_AP && rt2x00dev->intf_sta_count) || |
209 | ((conf->type == IEEE80211_IF_TYPE_AP && rt2x00dev->intf_sta_count) || | 209 | (conf->type != IEEE80211_IF_TYPE_AP && rt2x00dev->intf_ap_count)) |
210 | (conf->type != IEEE80211_IF_TYPE_AP && rt2x00dev->intf_ap_count))) | ||
211 | return -ENOBUFS; | 210 | return -ENOBUFS; |
212 | 211 | ||
213 | /* | 212 | /* |