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>
This commit is contained in:
committed by
John W. Linville
parent
96dd22ac06
commit
05c914fe33
@@ -103,7 +103,7 @@ void b43legacy_phy_lock(struct b43legacy_wldev *dev)
|
||||
if (dev->dev->id.revision < 3) {
|
||||
b43legacy_mac_suspend(dev);
|
||||
} else {
|
||||
if (!b43legacy_is_mode(dev->wl, IEEE80211_IF_TYPE_AP))
|
||||
if (!b43legacy_is_mode(dev->wl, NL80211_IFTYPE_AP))
|
||||
b43legacy_power_saving_ctl_bits(dev, -1, 1);
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ void b43legacy_phy_unlock(struct b43legacy_wldev *dev)
|
||||
if (dev->dev->id.revision < 3) {
|
||||
b43legacy_mac_enable(dev);
|
||||
} else {
|
||||
if (!b43legacy_is_mode(dev->wl, IEEE80211_IF_TYPE_AP))
|
||||
if (!b43legacy_is_mode(dev->wl, NL80211_IFTYPE_AP))
|
||||
b43legacy_power_saving_ctl_bits(dev, -1, -1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user