1 diff -urN acx-mac80211-20080805/acx_mac80211.h acx-mac80211-20080805.new/acx_mac80211.h
2 --- acx-mac80211-20080805/acx_mac80211.h 2009-05-07 14:32:44.000000000 +0200
3 +++ acx-mac80211-20080805.new/acx_mac80211.h 2009-05-07 15:59:45.000000000 +0200
5 /* Current BSSID (if any). */
8 - /* Interface type. (IEEE80211_IF_TYPE_XXX) */
9 + /* Interface type. (NL80211_IFTYPE_XXX) */
11 /* Counter of active monitor interfaces. */
13 diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c
14 --- acx-mac80211-20080805/common.c 2009-05-07 14:32:44.000000000 +0200
15 +++ acx-mac80211-20080805.new/common.c 2009-05-07 16:11:26.000000000 +0200
16 @@ -4105,28 +4105,28 @@
18 if (adev->interface.operating) {
19 switch (adev->interface.type) {
20 - case IEEE80211_IF_TYPE_AP:
21 + case NL80211_IFTYPE_AP:
22 if (adev->mode != ACX_MODE_3_AP)
24 adev->mode = ACX_MODE_3_AP;
28 - case IEEE80211_IF_TYPE_IBSS:
29 + case NL80211_IFTYPE_ADHOC:
30 if (adev->mode != ACX_MODE_0_ADHOC)
32 adev->mode = ACX_MODE_0_ADHOC;
36 - case IEEE80211_IF_TYPE_STA:
37 + case NL80211_IFTYPE_STATION:
38 if (adev->mode != ACX_MODE_2_STA)
40 adev->mode = ACX_MODE_2_STA;
44 - case IEEE80211_IF_TYPE_WDS:
45 + case NL80211_IFTYPE_WDS:
47 if (adev->mode != ACX_MODE_OFF)
53 - if (adev->interface.type == IEEE80211_IF_TYPE_MNTR)
54 + if (adev->interface.type == NL80211_IFTYPE_MONITOR)
56 if (adev->mode != ACX_MODE_MONITOR)
60 acx_lock(adev, flags);
62 - if (conf->type == IEEE80211_IF_TYPE_MNTR) {
63 + if (conf->type == NL80211_IFTYPE_MONITOR) {
64 adev->interface.monitor++;
66 if (adev->interface.operating)
71 - if (conf->type == IEEE80211_IF_TYPE_MNTR) {
72 + if (conf->type == NL80211_IFTYPE_MONITOR) {
73 adev->interface.monitor--;
74 // assert(bcm->interface.monitor >= 0);
78 acx_lock(adev, flags);
80 - if ((vif->type != IEEE80211_IF_TYPE_MNTR)
81 + if ((vif->type != NL80211_IFTYPE_MONITOR)
82 && (adev->vif == vif)) {
86 MAC_COPY(adev->bssid,conf->bssid);
89 - if ((vif->type == IEEE80211_IF_TYPE_AP)
90 + if ((vif->type == NL80211_IFTYPE_AP)
91 && (adev->vif == vif)) {
92 if ((conf->ssid_len > 0) && conf->ssid)