diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-09-23 22:22:53 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-25 23:57:43 +0400 |
commit | 3e4c4151e56ff367fb1487ea79134eea74104077 (patch) | |
tree | be677a3f904881307385a91c98ca62bf7e284373 /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | fd0fc5218dc31d446fd108a6a571702a7c9bec29 (diff) | |
download | linux-3e4c4151e56ff367fb1487ea79134eea74104077.tar.xz |
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, 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; |