diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-08-29 19:26:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-05 16:17:42 -0400 |
commit | f59ac0481660e66cec67f1d6b024e78b9dc715fe (patch) | |
tree | e9c69b04ac5863b1429bca5a9df1d75026703cde /drivers/net/wireless/b43legacy | |
parent | c6e387a214f4b2c4bd48020409e366c133385d98 (diff) |
cfg80211: keep track of supported interface modes
It is obviously good for userspace to know up front which
interface modes a given piece of hardware might support (even
if adding such an interface might fail later because of
concurrency issues), so let's make cfg80211 aware of that.
For good measure, disallow adding interfaces in all other
modes so drivers don't forget to announce support for one mode
when they add it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Stephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy')
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 1cb77db5c292..68f63f5093af 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -3704,6 +3704,11 @@ static int b43legacy_wireless_init(struct ssb_device *dev) | |||
3704 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | | 3704 | hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | |
3705 | IEEE80211_HW_SIGNAL_DBM | | 3705 | IEEE80211_HW_SIGNAL_DBM | |
3706 | IEEE80211_HW_NOISE_DBM; | 3706 | IEEE80211_HW_NOISE_DBM; |
3707 | hw->wiphy->interface_modes = | ||
3708 | BIT(NL80211_IFTYPE_AP) | | ||
3709 | BIT(NL80211_IFTYPE_STATION) | | ||
3710 | BIT(NL80211_IFTYPE_WDS) | | ||
3711 | BIT(NL80211_IFTYPE_ADHOC); | ||
3707 | hw->queues = 1; /* FIXME: hardware has more queues */ | 3712 | hw->queues = 1; /* FIXME: hardware has more queues */ |
3708 | SET_IEEE80211_DEV(hw, dev->dev); | 3713 | SET_IEEE80211_DEV(hw, dev->dev); |
3709 | if (is_valid_ether_addr(sprom->et1mac)) | 3714 | if (is_valid_ether_addr(sprom->et1mac)) |