2 ** $Id: @(#) p2p_assoc.c@@
5 /*! \file "p2p_assoc.c"
6 \brief This file includes the Wi-Fi Direct association-related functions.
8 This file includes the association-related functions.
14 /*******************************************************************************
15 * C O M P I L E R F L A G S
16 ********************************************************************************
19 /*******************************************************************************
20 * E X T E R N A L R E F E R E N C E S
21 ********************************************************************************
26 /*******************************************************************************
28 ********************************************************************************
31 /*******************************************************************************
33 ********************************************************************************
36 /*******************************************************************************
38 ********************************************************************************
41 /*******************************************************************************
42 * P R I V A T E D A T A
43 ********************************************************************************
46 /*******************************************************************************
48 ********************************************************************************
51 /*******************************************************************************
52 * F U N C T I O N D E C L A R A T I O N S
53 ********************************************************************************
56 /*******************************************************************************
58 ********************************************************************************
61 /*----------------------------------------------------------------------------*/
63 * @brief This function is used to compose Common Information Elements for P2P Association
66 * @param[in] prMsduInfo Pointer to the composed MSDU_INFO_T.
70 /*----------------------------------------------------------------------------*/
72 p2pBuildReAssocReqFrameCommonIEs(
73 IN P_ADAPTER_T prAdapter,
74 IN P_MSDU_INFO_T prMsduInfo,
78 P_P2P_CONNECTION_SETTINGS_T prP2pConnSettings = (P_P2P_CONNECTION_SETTINGS_T)NULL;
80 prP2pConnSettings = prAdapter->rWifiVar.prP2PConnSettings;
82 /* Fill the SSID element. */
83 SSID_IE(pucBuffer)->ucId = ELEM_ID_SSID;
85 /* NOTE(Kevin): We copy the SSID from CONNECTION_SETTINGS for the case of
86 * Passive Scan and the target BSS didn't broadcast SSID on its Beacon Frame.
89 COPY_SSID(SSID_IE(pucBuffer)->aucSSID,
90 SSID_IE(pucBuffer)->ucLength,
91 prP2pConnSettings->aucSSID,
92 prP2pConnSettings->ucSSIDLen);
94 prMsduInfo->u2FrameLength += IE_SIZE(pucBuffer);
95 pucBuffer += IE_SIZE(pucBuffer);