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
@@ -384,7 +384,7 @@ static void rt2500usb_config_intf(struct rt2x00_dev *rt2x00dev,
|
||||
rt2500usb_register_read(rt2x00dev, TXRX_CSR20, ®);
|
||||
rt2x00_set_field16(®, TXRX_CSR20_OFFSET, bcn_preload >> 6);
|
||||
rt2x00_set_field16(®, TXRX_CSR20_BCN_EXPECT_WINDOW,
|
||||
2 * (conf->type != IEEE80211_IF_TYPE_STA));
|
||||
2 * (conf->type != NL80211_IFTYPE_STATION));
|
||||
rt2500usb_register_write(rt2x00dev, TXRX_CSR20, reg);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user