diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index c3d0f2f87b69..98a9e48f8e4a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -214,46 +214,6 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, | |||
214 | !test_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) | 214 | !test_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) |
215 | return -ENODEV; | 215 | return -ENODEV; |
216 | 216 | ||
217 | switch (vif->type) { | ||
218 | case NL80211_IFTYPE_AP: | ||
219 | /* | ||
220 | * We don't support mixed combinations of | ||
221 | * sta and ap interfaces. | ||
222 | */ | ||
223 | if (rt2x00dev->intf_sta_count) | ||
224 | return -ENOBUFS; | ||
225 | |||
226 | /* | ||
227 | * Check if we exceeded the maximum amount | ||
228 | * of supported interfaces. | ||
229 | */ | ||
230 | if (rt2x00dev->intf_ap_count >= rt2x00dev->ops->max_ap_intf) | ||
231 | return -ENOBUFS; | ||
232 | |||
233 | break; | ||
234 | case NL80211_IFTYPE_STATION: | ||
235 | case NL80211_IFTYPE_ADHOC: | ||
236 | case NL80211_IFTYPE_MESH_POINT: | ||
237 | case NL80211_IFTYPE_WDS: | ||
238 | /* | ||
239 | * We don't support mixed combinations of | ||
240 | * sta and ap interfaces. | ||
241 | */ | ||
242 | if (rt2x00dev->intf_ap_count) | ||
243 | return -ENOBUFS; | ||
244 | |||
245 | /* | ||
246 | * Check if we exceeded the maximum amount | ||
247 | * of supported interfaces. | ||
248 | */ | ||
249 | if (rt2x00dev->intf_sta_count >= rt2x00dev->ops->max_sta_intf) | ||
250 | return -ENOBUFS; | ||
251 | |||
252 | break; | ||
253 | default: | ||
254 | return -EINVAL; | ||
255 | } | ||
256 | |||
257 | /* | 217 | /* |
258 | * Loop through all beacon queues to find a free | 218 | * Loop through all beacon queues to find a free |
259 | * entry. Since there are as much beacon entries | 219 | * entry. Since there are as much beacon entries |