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/rt2x00dev.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/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 2f3bfc606880..86840e3585e8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -467,8 +467,8 @@ static void rt2x00lib_beacondone_iter(void *data, u8 *mac, | |||
467 | struct rt2x00_dev *rt2x00dev = data; | 467 | struct rt2x00_dev *rt2x00dev = data; |
468 | struct rt2x00_intf *intf = vif_to_intf(vif); | 468 | struct rt2x00_intf *intf = vif_to_intf(vif); |
469 | 469 | ||
470 | if (vif->type != IEEE80211_IF_TYPE_AP && | 470 | if (vif->type != NL80211_IFTYPE_AP && |
471 | vif->type != IEEE80211_IF_TYPE_IBSS) | 471 | vif->type != NL80211_IFTYPE_ADHOC) |
472 | return; | 472 | return; |
473 | 473 | ||
474 | /* | 474 | /* |
@@ -1212,8 +1212,8 @@ static void rt2x00lib_resume_intf(void *data, u8 *mac, | |||
1212 | /* | 1212 | /* |
1213 | * Master or Ad-hoc mode require a new beacon update. | 1213 | * Master or Ad-hoc mode require a new beacon update. |
1214 | */ | 1214 | */ |
1215 | if (vif->type == IEEE80211_IF_TYPE_AP || | 1215 | if (vif->type == NL80211_IFTYPE_AP || |
1216 | vif->type == IEEE80211_IF_TYPE_IBSS) | 1216 | vif->type == NL80211_IFTYPE_ADHOC) |
1217 | intf->delayed_flags |= DELAYED_UPDATE_BEACON; | 1217 | intf->delayed_flags |= DELAYED_UPDATE_BEACON; |
1218 | 1218 | ||
1219 | spin_unlock(&intf->lock); | 1219 | spin_unlock(&intf->lock); |