Commit d28c2561 authored by Ivo van Doorn's avatar Ivo van Doorn Committed by David S. Miller

rt2x00: Use IEEE80211_IF_TYPE_INVALID directly

No need to use a seperate define INVALID_INTERFACE while
we can use IEEE80211_IF_TYPE_INVALID directly.
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4d8dd66c
...@@ -369,10 +369,8 @@ struct interface { ...@@ -369,10 +369,8 @@ struct interface {
/* /*
* Current working type (IEEE80211_IF_TYPE_*). * Current working type (IEEE80211_IF_TYPE_*).
* When set to INVALID_INTERFACE, no interface is configured.
*/ */
int type; int type;
#define INVALID_INTERFACE IEEE80211_IF_TYPE_INVALID
/* /*
* MAC of the device. * MAC of the device.
......
...@@ -1170,7 +1170,7 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev) ...@@ -1170,7 +1170,7 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
/* /*
* Reset current working type. * Reset current working type.
*/ */
rt2x00dev->interface.type = INVALID_INTERFACE; rt2x00dev->interface.type = IEEE80211_IF_TYPE_INVALID;
/* /*
* Allocate ring array. * Allocate ring array.
......
...@@ -242,7 +242,7 @@ void rt2x00mac_remove_interface(struct ieee80211_hw *hw, ...@@ -242,7 +242,7 @@ void rt2x00mac_remove_interface(struct ieee80211_hw *hw,
return; return;
intf->id = 0; intf->id = 0;
intf->type = INVALID_INTERFACE; intf->type = IEEE80211_IF_TYPE_INVALID;
memset(&intf->bssid, 0x00, ETH_ALEN); memset(&intf->bssid, 0x00, ETH_ALEN);
memset(&intf->mac, 0x00, ETH_ALEN); memset(&intf->mac, 0x00, ETH_ALEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment