1 #ifndef __WINBOND_BSS_F_H
2 #define __WINBOND_BSS_F_H
6 struct PMKID_Information_Element
;
9 // BSS descriptor DataBase management global function
12 void vBSSdescriptionInit(struct wbsoft_priv
* adapter
);
13 void vBSSfoundList(struct wbsoft_priv
* adapter
);
14 u8
boChanFilter(struct wbsoft_priv
* adapter
, u8 ChanNo
);
15 u16
wBSSallocateEntry(struct wbsoft_priv
* adapter
);
16 u16
wBSSGetEntry(struct wbsoft_priv
* adapter
);
17 void vSimpleHouseKeeping(struct wbsoft_priv
* adapter
);
18 u16
wBSShouseKeeping(struct wbsoft_priv
* adapter
);
19 void ClearBSSdescpt(struct wbsoft_priv
* adapter
, u16 i
);
20 u16
wBSSfindBssID(struct wbsoft_priv
* adapter
, u8
*pbBssid
);
21 u16
wBSSfindDedicateCandidate(struct wbsoft_priv
* adapter
, struct SSID_Element
*psSsid
, u8
*pbBssid
);
22 u16
wBSSfindMACaddr(struct wbsoft_priv
* adapter
, u8
*pbMacAddr
);
23 u16
wBSSsearchMACaddr(struct wbsoft_priv
* adapter
, u8
*pbMacAddr
, u8 band
);
24 u16
wBSSaddScanData(struct wbsoft_priv
*, u16
, psRXDATA
);
25 u16
wBSSUpdateScanData(struct wbsoft_priv
* adapter
, u16 wBssIdx
, psRXDATA psRcvData
);
26 u16
wBSScreateIBSSdata(struct wbsoft_priv
* adapter
, PWB_BSSDESCRIPTION psDesData
);
27 void DesiredRate2BSSdescriptor(struct wbsoft_priv
* adapter
, PWB_BSSDESCRIPTION psDesData
,
28 u8
*pBasicRateSet
, u8 BasicRateCount
,
29 u8
*pOperationRateSet
, u8 OperationRateCount
);
30 void DesiredRate2InfoElement(struct wbsoft_priv
* adapter
, u8
*addr
, u16
*iFildOffset
,
31 u8
*pBasicRateSet
, u8 BasicRateCount
,
32 u8
*pOperationRateSet
, u8 OperationRateCount
);
33 void BSSAddIBSSdata(struct wbsoft_priv
* adapter
, PWB_BSSDESCRIPTION psDesData
);
34 unsigned char boCmpMacAddr( u8
*, u8
*);
35 unsigned char boCmpSSID(struct SSID_Element
*psSSID1
, struct SSID_Element
*psSSID2
);
36 u16
wBSSfindSSID(struct wbsoft_priv
* adapter
, struct SSID_Element
*psSsid
);
37 u16
wRoamingQuery(struct wbsoft_priv
* adapter
);
38 void vRateToBitmap(struct wbsoft_priv
* adapter
, u16 index
);
39 u8
bRateToBitmapIndex(struct wbsoft_priv
* adapter
, u8 bRate
);
40 u8
bBitmapToRate(u8 i
);
41 unsigned char boIsERPsta(struct wbsoft_priv
* adapter
, u16 i
);
42 unsigned char boCheckConnect(struct wbsoft_priv
* adapter
);
43 unsigned char boCheckSignal(struct wbsoft_priv
* adapter
);
44 void AddIBSSIe(struct wbsoft_priv
* adapter
,PWB_BSSDESCRIPTION psDesData
);//added by ws for WPA_None06/01/04
45 void BssScanUpToDate(struct wbsoft_priv
* adapter
);
46 void BssUpToDate(struct wbsoft_priv
* adapter
);
47 void RateSort(u8
*RateArray
, u8 num
, u8 mode
);
48 void RateReSortForSRate(struct wbsoft_priv
* adapter
, u8
*RateArray
, u8 num
);
49 void Assemble_IE(struct wbsoft_priv
* adapter
, u16 wBssIdx
);
50 void SetMaxTxRate(struct wbsoft_priv
* adapter
);
52 void CreateWpaIE(struct wbsoft_priv
* adapter
, u16
* iFildOffset
, u8
*msg
, struct Management_Frame
* msgHeader
,
53 struct Association_Request_Frame_Body
* msgBody
, u16 iMSindex
); //added by WS 05/14/05
56 void CreateRsnIE(struct wbsoft_priv
* adapter
, u16
* iFildOffset
, u8
*msg
, struct Management_Frame
* msgHeader
,
57 struct Association_Request_Frame_Body
* msgBody
, u16 iMSindex
);//added by WS 05/14/05
59 u16
SearchPmkid(struct wbsoft_priv
* adapter
, struct Management_Frame
* msgHeader
,
60 struct PMKID_Information_Element
* AssoReq_PMKID
);