package/devel/binutils: Update to 2.27
[openwrt/staging/ynezz.git] / package / kernel / mac80211 / patches / 319-0028-brcmfmac-simplify-mapping-of-auth-type.patch
1 From 92c313604711a0976def79dabb9e8da3cc2cc780 Mon Sep 17 00:00:00 2001
2 From: Hante Meuleman <hante.meuleman@broadcom.com>
3 Date: Mon, 19 Sep 2016 12:09:59 +0100
4 Subject: [PATCH] brcmfmac: simplify mapping of auth type
5
6 The 802.11 standard only has four valid auth type configurations of which
7 our firmware only supports two, ie. Open System and Shared Key. Simplify
8 the mapping falling back to automatic for other types specified by
9 user-space.
10
11 Reviewed-by: Arend Van Spriel <arend.vanspriel@broadcom.com>
12 Reviewed-by: Franky Lin <franky.lin@broadcom.com>
13 Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
14 Signed-off-by: Hante Meuleman <hante.meuleman@broadcom.com>
15 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
16 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
17 ---
18 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 8 +-------
19 1 file changed, 1 insertion(+), 7 deletions(-)
20
21 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
22 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
23 @@ -1591,15 +1591,9 @@ static s32 brcmf_set_auth_type(struct ne
24 val = 1;
25 brcmf_dbg(CONN, "shared key\n");
26 break;
27 - case NL80211_AUTHTYPE_AUTOMATIC:
28 - val = 2;
29 - brcmf_dbg(CONN, "automatic\n");
30 - break;
31 - case NL80211_AUTHTYPE_NETWORK_EAP:
32 - brcmf_dbg(CONN, "network eap\n");
33 default:
34 val = 2;
35 - brcmf_err("invalid auth type (%d)\n", sme->auth_type);
36 + brcmf_dbg(CONN, "automatic, auth type (%d)\n", sme->auth_type);
37 break;
38 }
39