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/rt2x00mac.c | |
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/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 5 |
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; |