From 76dfffe83455c6b6ff007fafde6233c15346149e Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Sat, 25 Jun 2022 03:54:35 +0800 Subject: [PATCH] wireless/bcm43xxx: fix nxstyle issue Signed-off-by: chao.an --- .../wireless/ieee80211/bcm43xxx/bcmf_driver.c | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index fd1a3cf442e..b242ba3ab16 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -2245,11 +2245,25 @@ int bcmf_wl_set_pta_priority(FAR struct bcmf_dev_s *priv, uint32_t prio) wl_pta_t pta_prio_map[IW_PTA_PRIORITY_WLAN_MAXIMIZED + 1] = { - { 0, 50, }, - { 10, 50, }, - { 25, 50, }, - { 40, 50, }, - { 50, 50, }, + { + 0, 50, + }, + + { + 10, 50, + }, + + { + 25, 50, + }, + + { + 40, 50, + }, + + { + 50, 50, + }, }; if (prio > IW_PTA_PRIORITY_WLAN_MAXIMIZED) @@ -2262,7 +2276,6 @@ int bcmf_wl_set_pta_priority(FAR struct bcmf_dev_s *priv, uint32_t prio) return OK; } - out_len = sizeof(wl_pta_t); ret = bcmf_cdc_iovar_request(priv, CHIP_STA_INTERFACE, true, IOVAR_STR_COEX_PARA,