Partially Revert "brcmfmac: p2p: Deal with set but unused variables"
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 15 Sep 2021 06:07:00 +0000 (15:07 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +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: Ia90e256c3d10396b1018e3aec8145139accfb39e
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 b08d2ca..942bd53 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;
        }