3 //Department/DaVinci/TRUNK/MT6620_5931_WiFi_Driver/os/linux/include/gl_p2p_os.h#28 $
7 \brief List the external reference to OS for p2p GLUE Layer.
9 In this file we define the data structure - GLUE_INFO_T to store those objects
10 we acquired from OS - e.g. TIMER, SPINLOCK, NET DEVICE ... . And all the
11 external reference (header file, extern func() ..) to OS for GLUE Layer should
22 /*******************************************************************************
23 * C O M P I L E R F L A G S
24 ********************************************************************************
27 /*******************************************************************************
28 * E X T E R N A L R E F E R E N C E S
29 ********************************************************************************
32 /*******************************************************************************
34 ********************************************************************************
37 /*******************************************************************************
39 ********************************************************************************
42 /*******************************************************************************
44 ********************************************************************************
47 /*******************************************************************************
49 ********************************************************************************
52 /*******************************************************************************
53 * P R I V A T E D A T A
54 ********************************************************************************
57 /*******************************************************************************
58 * F U N C T I O N D E C L A R A T I O N S
59 ********************************************************************************
63 struct _GL_P2P_INFO_T {
66 struct net_device *prDevHandler;
68 #if CFG_ENABLE_WIFI_DIRECT_CFG_80211
70 struct wireless_dev wdev;
72 struct cfg80211_scan_request *prScanRequest;
76 /* Generation for station list update. */
79 UINT_32 u4OsMgmtFrameFilter;
83 /* Device statistics */
84 struct net_device_stats rNetDevStats;
86 /* glue layer variables */
87 /*move to glueinfo->adapter*/
88 // BOOLEAN fgIsRegistered;
89 UINT_32 u4FreqInKHz; /* frequency */
90 UINT_8 ucRole; /* 0: P2P Device, 1: Group Client, 2: Group Owner */
91 UINT_8 ucIntent; /* range: 0-15 */
92 UINT_8 ucScanMode; /* 0: Search & Listen, 1: Scan without probe response */
94 ENUM_PARAM_MEDIA_STATE_T eState;
95 UINT_32 u4PacketFilter;
96 PARAM_MAC_ADDRESS aucMCAddrList[MAX_NUM_GROUP_ADDR];
98 /* connection-requested peer information */
99 UINT_8 aucConnReqDevName[32];
100 INT_32 u4ConnReqNameLength;
101 PARAM_MAC_ADDRESS rConnReqPeerAddr;
102 PARAM_MAC_ADDRESS rConnReqGroupAddr; /* For invitation group. */
103 UINT_8 ucConnReqDevType;
104 INT_32 i4ConnReqConfigMethod;
105 INT_32 i4ConnReqActiveConfigMethod;
107 UINT_32 u4CipherPairwise;
110 UINT_8 aucWSCIE[3][400]; /* 0 for beacon, 1 for probe req, 2 for probe response */
111 UINT_16 u2WSCIELen[3];
113 UINT_8 ucOperatingChnl;
114 UINT_8 ucInvitationType;
118 /* For SET_STRUCT/GET_STRUCT */
119 UINT_8 aucOidBuf[4096];
121 #if 1 /* CFG_SUPPORT_ANTI_PIRACY */
122 UINT_8 aucSecCheck[256];
123 UINT_8 aucSecCheckRsp[256];
126 /* Hotspot Client Management */
127 PARAM_MAC_ADDRESS aucblackMACList[8];
135 P_GLUE_INFO_T prGlueInfo
140 P_GLUE_INFO_T prGlueInfo
145 P_GLUE_INFO_T prGlueInfo
150 P_GLUE_INFO_T prGlueInfo
155 IN BOOLEAN fgIsAPMOde
161 P_GLUE_INFO_T prGlueInfo,
162 const char *prDevName,
168 P_GLUE_INFO_T prGlueInfo
173 P_GLUE_INFO_T prGlueInfo,
174 BOOLEAN fgIsRtnlLockAcquired
179 P_GLUE_INFO_T prGlueInfo,
180 BOOLEAN fgIsRtnlLockAcquired
185 P_GLUE_INFO_T prGlueInfo
190 P_GLUE_INFO_T prGlueInfo