OSDN Git Service

Add P2P support for BRCM CFG80211 driver
[android-x86/external-wpa_supplicant_8.git] / src / p2p / p2p_build.c
index c34db91..d59e54b 100644 (file)
@@ -164,7 +164,16 @@ void p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p,
        len = wpabuf_put(buf, 2); /* IE length to be filled */
 
        /* P2P Device address */
+#ifdef ANDROID_BRCM_P2P_PATCH
+       /* 
+       * P2P_ADDR: Supplicant uses primary mac addr for p2p and hence advertises that. To
+       * to make it compatible with solution using virtual interface for P2P, a new variable
+       * is added to hold the actual p2p device address.
+       */
+       wpabuf_put_data(buf, p2p->cfg->p2p_dev_addr, ETH_ALEN);
+#else
        wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN);
+#endif
 
        /* Config Methods */
        methods = 0;