package/grub: revert accidental/unessesery grub commit
[openwrt.git] / package / acx-mac80211 / patches / 001-wlan_cipher_suite.patch
1 diff --git a/common.c b/common.c
2 index 69cdf5b..28b3750 100644
3 --- a/common.c
4 +++ b/common.c
5 @@ -5765,8 +5765,9 @@ int acx_e_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
6 * TODO WEP hw support can still be added later, if required.
7 */
8
9 - switch (key->alg) {
10 - case ALG_WEP:
11 + switch (key->cipher) {
12 + case WLAN_CIPHER_SUITE_WEP40:
13 + case WLAN_CIPHER_SUITE_WEP104:
14 if (key->keylen == 5) {
15 algorithm = ACX_SEC_ALGO_WEP;
16 log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_WEP");
17 @@ -5778,14 +5779,14 @@ int acx_e_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
18 err = -EOPNOTSUPP;
19 break;
20
21 - case ALG_TKIP:
22 + case WLAN_CIPHER_SUITE_TKIP:
23 algorithm = ACX_SEC_ALGO_TKIP;
24 log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_TKIP");
25 err = -EOPNOTSUPP;
26 break;
27
28 break;
29 - case ALG_CCMP:
30 + case WLAN_CIPHER_SUITE_CCMP:
31 algorithm = ACX_SEC_ALGO_AES;
32 log(L_INIT, "acx: %s: algorithm=%i: %s\n", __func__, algorithm, "ACX_SEC_ALGO_AES");
33 err = -EOPNOTSUPP;
This page took 0.04147 seconds and 5 git commands to generate.