mac80211: Update to backports-4.19.207-1
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 391-v5.4-brcmfmac-use-ph-to-print-small-buffer.patch
1 From 0e48b86d9a8f5c695bb02c9c02f6dc7d2ec8f2e2 Mon Sep 17 00:00:00 2001
2 From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
3 Date: Wed, 4 Sep 2019 20:50:52 +0300
4 Subject: [PATCH] brcmfmac: use %*ph to print small buffer
5
6 Use %*ph format to print small buffer as hex string.
7
8 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
9 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
10 ---
11 .../broadcom/brcm80211/brcmfmac/cfg80211.c | 18 ++++++------------
12 1 file changed, 6 insertions(+), 12 deletions(-)
13
14 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
15 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
16 @@ -4217,10 +4217,8 @@ brcmf_parse_vndr_ies(const u8 *vndr_ie_b
17
18 vndr_ies->count++;
19
20 - brcmf_dbg(TRACE, "** OUI %02x %02x %02x, type 0x%02x\n",
21 - parsed_info->vndrie.oui[0],
22 - parsed_info->vndrie.oui[1],
23 - parsed_info->vndrie.oui[2],
24 + brcmf_dbg(TRACE, "** OUI %3ph, type 0x%02x\n",
25 + parsed_info->vndrie.oui,
26 parsed_info->vndrie.oui_type);
27
28 if (vndr_ies->count >= VNDR_IE_PARSE_LIMIT)
29 @@ -4344,12 +4342,10 @@ s32 brcmf_vif_set_mgmt_ie(struct brcmf_c
30 for (i = 0; i < old_vndr_ies.count; i++) {
31 vndrie_info = &old_vndr_ies.ie_info[i];
32
33 - brcmf_dbg(TRACE, "DEL ID : %d, Len: %d , OUI:%02x:%02x:%02x\n",
34 + brcmf_dbg(TRACE, "DEL ID : %d, Len: %d , OUI:%3ph\n",
35 vndrie_info->vndrie.id,
36 vndrie_info->vndrie.len,
37 - vndrie_info->vndrie.oui[0],
38 - vndrie_info->vndrie.oui[1],
39 - vndrie_info->vndrie.oui[2]);
40 + vndrie_info->vndrie.oui);
41
42 del_add_ie_buf_len = brcmf_vndr_ie(curr_ie_buf, pktflag,
43 vndrie_info->ie_ptr,
44 @@ -4381,12 +4377,10 @@ s32 brcmf_vif_set_mgmt_ie(struct brcmf_c
45 remained_buf_len -= (vndrie_info->ie_len +
46 VNDR_IE_VSIE_OFFSET);
47
48 - brcmf_dbg(TRACE, "ADDED ID : %d, Len: %d, OUI:%02x:%02x:%02x\n",
49 + brcmf_dbg(TRACE, "ADDED ID : %d, Len: %d, OUI:%3ph\n",
50 vndrie_info->vndrie.id,
51 vndrie_info->vndrie.len,
52 - vndrie_info->vndrie.oui[0],
53 - vndrie_info->vndrie.oui[1],
54 - vndrie_info->vndrie.oui[2]);
55 + vndrie_info->vndrie.oui);
56
57 del_add_ie_buf_len = brcmf_vndr_ie(curr_ie_buf, pktflag,
58 vndrie_info->ie_ptr,