summaryrefslogtreecommitdiff
path: root/package/acx-mac80211/patches
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-09-11 08:11:22 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-09-11 08:11:22 +0000
commit7daf012a27f2da29bf3ac2267a45dfc293f82ca7 (patch)
tree69e20247c8085a8577c925d390966c45b30ff095 /package/acx-mac80211/patches
parent9b4aafb87e928eb098a2ecc16e0dba30f3c06fb6 (diff)
downloadmtk-20170518-7daf012a27f2da29bf3ac2267a45dfc293f82ca7.zip
mtk-20170518-7daf012a27f2da29bf3ac2267a45dfc293f82ca7.tar.gz
mtk-20170518-7daf012a27f2da29bf3ac2267a45dfc293f82ca7.tar.bz2
fix acx-mac80211 build failure with latest compat-wireless
SVN-Revision: 23001
Diffstat (limited to 'package/acx-mac80211/patches')
-rw-r--r--package/acx-mac80211/patches/001-wlan_cipher_suite.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/acx-mac80211/patches/001-wlan_cipher_suite.patch b/package/acx-mac80211/patches/001-wlan_cipher_suite.patch
new file mode 100644
index 0000000..f9d9409
--- /dev/null
+++ b/package/acx-mac80211/patches/001-wlan_cipher_suite.patch
@@ -0,0 +1,33 @@
+diff --git a/common.c b/common.c
+index 69cdf5b..28b3750 100644
+--- a/common.c
++++ b/common.c
+@@ -5765,8 +5765,9 @@ int acx_e_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
+ * TODO WEP hw support can still be added later, if required.
+ */
+
+- switch (key->alg) {
+- case ALG_WEP:
++ switch (key->cipher) {
++ case WLAN_CIPHER_SUITE_WEP40:
++ case WLAN_CIPHER_SUITE_WEP104:
+ if (key->keylen == 5) {
+ algorithm = ACX_SEC_ALGO_WEP;
+ log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_WEP");
+@@ -5778,14 +5779,14 @@ int acx_e_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
+ err = -EOPNOTSUPP;
+ break;
+
+- case ALG_TKIP:
++ case WLAN_CIPHER_SUITE_TKIP:
+ algorithm = ACX_SEC_ALGO_TKIP;
+ log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_TKIP");
+ err = -EOPNOTSUPP;
+ break;
+
+ break;
+- case ALG_CCMP:
++ case WLAN_CIPHER_SUITE_CCMP:
+ algorithm = ACX_SEC_ALGO_AES;
+ log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_AES");
+ err = -EOPNOTSUPP;