Partially Revert "brcmfmac: p2p: Deal with set but unused variables" 18/287118/1 accepted/tizen/unified/20230120.182107
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 20 Jan 2023 04:41:37 +0000 (13:41 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 20 Jan 2023 04:43:08 +0000 (13:43 +0900)
This partially reverts commit 2de64ca7c9fadd32b261530592db4a6adbfcb53f.

The commit 61325dc073e2 ("Revert "brcmfmac: move configuration of
probe request IEs"") requires vif set with p2p interface, but commit
2de64ca7c9fa removes setting. Partially revert the commit to support
p2p usage with p2p interface.

Change-Id: Iaa3a6c57bb9e14c80ef9f4714eea0cfc447d6adc
Reported-by: Jiung Yu <jiung.yu@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c

index 9ec232e..d3e7e20 100644 (file)
@@ -912,6 +912,8 @@ int brcmf_p2p_scan_prep(struct wiphy *wiphy,
                if (err)
                        return err;
 
+               vif = p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif;
+
                /* override .run_escan() callback. */
                cfg->escan_info.run = brcmf_p2p_run_escan;
        }