aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00mac.c5
1 files changed, 2 insertions, 3 deletions
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;