diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-05-07 15:07:20 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-05-07 15:07:20 +0000 |
commit | 72694c21eb640ebb543760399a6a04104fdbbec2 (patch) | |
tree | 881be2402286ca64051d14effc808c8c02193c94 /package/acx-mac80211/patches/003-if_types.patch | |
parent | d257bf48d8edef2c7b1690c482bd88c5c88145bf (diff) | |
download | upstream-72694c21eb640ebb543760399a6a04104fdbbec2.tar.gz upstream-72694c21eb640ebb543760399a6a04104fdbbec2.tar.bz2 upstream-72694c21eb640ebb543760399a6a04104fdbbec2.zip |
make acx-mac80211 compile against latest compat-wireless, still does not work though ;)
SVN-Revision: 15690
Diffstat (limited to 'package/acx-mac80211/patches/003-if_types.patch')
-rw-r--r-- | package/acx-mac80211/patches/003-if_types.patch | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/package/acx-mac80211/patches/003-if_types.patch b/package/acx-mac80211/patches/003-if_types.patch new file mode 100644 index 0000000000..4e52963c81 --- /dev/null +++ b/package/acx-mac80211/patches/003-if_types.patch @@ -0,0 +1,93 @@ +diff -urN acx-mac80211-20080805/acx_mac80211.h acx-mac80211-20080805.new/acx_mac80211.h +--- acx-mac80211-20080805/acx_mac80211.h 2009-05-07 14:32:44.000000000 +0200 ++++ acx-mac80211-20080805.new/acx_mac80211.h 2009-05-07 15:59:45.000000000 +0200 +@@ -36,7 +36,7 @@ + /* Current BSSID (if any). */ + u8 *bssid; + +- /* Interface type. (IEEE80211_IF_TYPE_XXX) */ ++ /* Interface type. (NL80211_IFTYPE_XXX) */ + int type; + /* Counter of active monitor interfaces. */ + int monitor; +diff -urN acx-mac80211-20080805/common.c acx-mac80211-20080805.new/common.c +--- acx-mac80211-20080805/common.c 2009-05-07 14:32:44.000000000 +0200 ++++ acx-mac80211-20080805.new/common.c 2009-05-07 16:11:26.000000000 +0200 +@@ -4105,28 +4105,28 @@ + + if (adev->interface.operating) { + switch (adev->interface.type) { +- case IEEE80211_IF_TYPE_AP: ++ case NL80211_IFTYPE_AP: + if (adev->mode != ACX_MODE_3_AP) + { + adev->mode = ACX_MODE_3_AP; + changed = 1; + } + break; +- case IEEE80211_IF_TYPE_IBSS: ++ case NL80211_IFTYPE_ADHOC: + if (adev->mode != ACX_MODE_0_ADHOC) + { + adev->mode = ACX_MODE_0_ADHOC; + changed = 1; + } + break; +- case IEEE80211_IF_TYPE_STA: ++ case NL80211_IFTYPE_STATION: + if (adev->mode != ACX_MODE_2_STA) + { + adev->mode = ACX_MODE_2_STA; + changed = 1; + } + break; +- case IEEE80211_IF_TYPE_WDS: ++ case NL80211_IFTYPE_WDS: + default: + if (adev->mode != ACX_MODE_OFF) + { +@@ -4136,7 +4136,7 @@ + break; + } + } else { +- if (adev->interface.type == IEEE80211_IF_TYPE_MNTR) ++ if (adev->interface.type == NL80211_IFTYPE_MONITOR) + { + if (adev->mode != ACX_MODE_MONITOR) + { +@@ -4180,7 +4180,7 @@ + FN_ENTER; + acx_lock(adev, flags); + +- if (conf->type == IEEE80211_IF_TYPE_MNTR) { ++ if (conf->type == NL80211_IFTYPE_MONITOR) { + adev->interface.monitor++; + } else { + if (adev->interface.operating) +@@ -4226,7 +4226,7 @@ + FN_ENTER; + + acx_sem_lock(adev); +- if (conf->type == IEEE80211_IF_TYPE_MNTR) { ++ if (conf->type == NL80211_IFTYPE_MONITOR) { + adev->interface.monitor--; + // assert(bcm->interface.monitor >= 0); + } else { +@@ -4380,7 +4380,7 @@ + + acx_lock(adev, flags); + +- if ((vif->type != IEEE80211_IF_TYPE_MNTR) ++ if ((vif->type != NL80211_IFTYPE_MONITOR) + && (adev->vif == vif)) { + if (conf->bssid) + { +@@ -4388,7 +4388,7 @@ + MAC_COPY(adev->bssid,conf->bssid); + } + } +- if ((vif->type == IEEE80211_IF_TYPE_AP) ++ if ((vif->type == NL80211_IFTYPE_AP) + && (adev->vif == vif)) { + if ((conf->ssid_len > 0) && conf->ssid) + { |