3 @@ -36,7 +36,7 @@ struct acx_interface {
4 /* Current BSSID (if any). */
7 - /* Interface type. (IEEE80211_IF_TYPE_XXX) */
8 + /* Interface type. (NL80211_IFTYPE_XXX) */
10 /* Counter of active monitor interfaces. */
14 @@ -4111,28 +4111,28 @@ static void acx_s_select_opmode(acx_devi
16 if (adev->interface.operating) {
17 switch (adev->interface.type) {
18 - case IEEE80211_IF_TYPE_AP:
19 + case NL80211_IFTYPE_AP:
20 if (adev->mode != ACX_MODE_3_AP)
22 adev->mode = ACX_MODE_3_AP;
26 - case IEEE80211_IF_TYPE_IBSS:
27 + case NL80211_IFTYPE_ADHOC:
28 if (adev->mode != ACX_MODE_0_ADHOC)
30 adev->mode = ACX_MODE_0_ADHOC;
34 - case IEEE80211_IF_TYPE_STA:
35 + case NL80211_IFTYPE_STATION:
36 if (adev->mode != ACX_MODE_2_STA)
38 adev->mode = ACX_MODE_2_STA;
42 - case IEEE80211_IF_TYPE_WDS:
43 + case NL80211_IFTYPE_WDS:
45 if (adev->mode != ACX_MODE_OFF)
47 @@ -4142,7 +4142,7 @@ static void acx_s_select_opmode(acx_devi
51 - if (adev->interface.type == IEEE80211_IF_TYPE_MNTR)
52 + if (adev->interface.type == NL80211_IFTYPE_MONITOR)
54 if (adev->mode != ACX_MODE_MONITOR)
56 @@ -4186,7 +4186,7 @@ int acx_add_interface(struct ieee80211_h
58 acx_lock(adev, flags);
60 - if (conf->type == IEEE80211_IF_TYPE_MNTR) {
61 + if (conf->type == NL80211_IFTYPE_MONITOR) {
62 adev->interface.monitor++;
64 if (adev->interface.operating)
65 @@ -4232,7 +4232,7 @@ void acx_remove_interface(struct ieee802
69 - if (conf->type == IEEE80211_IF_TYPE_MNTR) {
70 + if (conf->type == NL80211_IFTYPE_MONITOR) {
71 adev->interface.monitor--;
72 // assert(bcm->interface.monitor >= 0);
74 @@ -4386,7 +4386,7 @@ extern int acx_config_interface(struct i
76 acx_lock(adev, flags);
78 - if ((vif->type != IEEE80211_IF_TYPE_MNTR)
79 + if ((vif->type != NL80211_IFTYPE_MONITOR)
80 && (adev->vif == vif)) {
83 @@ -4394,7 +4394,7 @@ extern int acx_config_interface(struct i
84 MAC_COPY(adev->bssid,conf->bssid);
87 - if ((vif->type == IEEE80211_IF_TYPE_AP)
88 + if ((vif->type == NL80211_IFTYPE_AP)
89 && (adev->vif == vif)) {
90 if ((conf->ssid_len > 0) && conf->ssid)