mac80211: brcm: backport first set of 5.4 brcmfmac changes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 101-v5.4-brcmfmac-fix-typos-in-code-comments.patch
1 From b07e1ae2ce53a60af67009ef199603a588003e07 Mon Sep 17 00:00:00 2001
2 From: Weitao Hou <houweitaoo@gmail.com>
3 Date: Mon, 20 May 2019 20:28:25 +0800
4 Subject: [PATCH] brcmfmac: fix typos in code comments
5
6 fix lengh to length
7
8 Signed-off-by: Weitao Hou <houweitaoo@gmail.com>
9 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
10 ---
11 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
15 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
16 @@ -303,7 +303,7 @@ brcmf_create_bsscfg(s32 bsscfgidx, char
17 return brcmf_create_iovar(name, data, datalen, buf, buflen);
18
19 prefixlen = strlen(prefix);
20 - namelen = strlen(name) + 1; /* lengh of iovar name + null */
21 + namelen = strlen(name) + 1; /* length of iovar name + null */
22 iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen;
23
24 if (buflen < iolen) {