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/adm8211.c | |
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/adm8211.c')
-rw-r--r-- | drivers/net/wireless/adm8211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index 3333d4596b8d..c6a55cd12db9 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c | |||
@@ -1884,6 +1884,7 @@ static int __devinit adm8211_probe(struct pci_dev *pdev, | |||
1884 | dev->extra_tx_headroom = sizeof(struct adm8211_tx_hdr); | 1884 | dev->extra_tx_headroom = sizeof(struct adm8211_tx_hdr); |
1885 | /* dev->flags = IEEE80211_HW_RX_INCLUDES_FCS in promisc mode */ | 1885 | /* dev->flags = IEEE80211_HW_RX_INCLUDES_FCS in promisc mode */ |
1886 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; | 1886 | dev->flags = IEEE80211_HW_SIGNAL_UNSPEC; |
1887 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); | ||
1887 | 1888 | ||
1888 | dev->channel_change_time = 1000; | 1889 | dev->channel_change_time = 1000; |
1889 | dev->max_signal = 100; /* FIXME: find better value */ | 1890 | dev->max_signal = 100; /* FIXME: find better value */ |