diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 18:01:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:23 -0400 |
commit | 05c914fe330fa8e1cc67870dc0d3809dfd96c107 (patch) | |
tree | df53bcab47335f3361c09478d6b1447b7d298536 /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 96dd22ac06b0dbfb069fdf530c72046a941e9694 (diff) |
mac80211: use nl80211 interface types
There's really no reason for mac80211 to be using its
own interface type defines. Use the nl80211 types and
simplify the configuration code a bit: there's no need
to translate them any more now.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index ca051f50ef10..4d5e87b015a0 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | 32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, |
33 | struct rt2x00_intf *intf, | 33 | struct rt2x00_intf *intf, |
34 | enum ieee80211_if_types type, | 34 | enum nl80211_iftype type, |
35 | u8 *mac, u8 *bssid) | 35 | u8 *mac, u8 *bssid) |
36 | { | 36 | { |
37 | struct rt2x00intf_conf conf; | 37 | struct rt2x00intf_conf conf; |
@@ -40,11 +40,11 @@ void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | |||
40 | conf.type = type; | 40 | conf.type = type; |
41 | 41 | ||
42 | switch (type) { | 42 | switch (type) { |
43 | case IEEE80211_IF_TYPE_IBSS: | 43 | case NL80211_IFTYPE_ADHOC: |
44 | case IEEE80211_IF_TYPE_AP: | 44 | case NL80211_IFTYPE_AP: |
45 | conf.sync = TSF_SYNC_BEACON; | 45 | conf.sync = TSF_SYNC_BEACON; |
46 | break; | 46 | break; |
47 | case IEEE80211_IF_TYPE_STA: | 47 | case NL80211_IFTYPE_STATION: |
48 | conf.sync = TSF_SYNC_INFRA; | 48 | conf.sync = TSF_SYNC_INFRA; |
49 | break; | 49 | break; |
50 | default: | 50 | default: |