Logo Search packages:      
Sourcecode: zd1211 version File versions  Download package

zdshared.h

#ifndef _ZDSHARED_H_
#define _ZDSHARED_H_

void mkFragment(Signal_t *signal, FrmDesc_t *pfrmDesc, U8 *pEthHdr);
BOOLEAN sendMgtFrame(Signal_t *signal, FrmDesc_t *pfrmDesc);
BOOLEAN     getElem(Frame_t *frame, ElementID eID, Element *eElem);

void mkAuthFrm(FrmDesc_t* pfrmDesc, MacAddr_t *addr1, U16 Alg, U16 Seq,
               U16 Status, U8 *pChalng, U8 vapId);
void mkRe_AsocRspFrm(FrmDesc_t* pfrmDesc, TypeSubtype subType, MacAddr_t *addr1,
                     U16 Cap, U16 Status, U16 Aid, Element *pSupRates, Element *pExtRates, U8 vapId);
void mkProbeReqFrm(FrmDesc_t* pfrmDesc, MacAddr_t *addr1, Element *pSsid, Element *pSupRates,
                   Element *pExtRates, Element *pWpa, U8 vapId);
void mkDisAssoc_DeAuthFrm(FrmDesc_t* pfrmDesc, TypeSubtype subType, MacAddr_t *addr1,
                          U16 Reason, U8 vapId);
void mkRe_AsocReqFrm(FrmDesc_t* pfrmDesc, TypeSubtype subType, MacAddr_t *addr1,
                     U16 Cap, U16 LisInterval, MacAddr_t *oldAP, Element *pSsid, Element *pSupRates,
                     Element *pExtRates, Element *pWpa, U8 vapId);
void sendProbeRspFrm(MacAddr_t *addr1, U16 BcnInterval, U16 Cap,
                     Element *pSsid, Element *pSupRates, Element *pDsParms,
                     Element *pExtRates, Element *pWpa, U8 vapId);
BOOLEAN sendPsPollFrame(Signal_t *signal, FrmDesc_t *pfrmDesc, MacAddr_t *addr1, U16 aid);
BOOLEAN sendNullDataFrame(Signal_t *signal, FrmDesc_t *pfrmDesc, MacAddr_t *addr1);
U8 RateConvert(U8 rate);
void mkProbeRspFrm(FrmDesc_t* pfrmDesc, MacAddr_t *addr1, U16 BcnInterval,
                   U16 Cap, Element *pSsid, Element *pSupRates, Element *pDsParms,
                   Element *pExtRates, Element *pWpa, U8 vapId);
#endif

Generated by  Doxygen 1.6.0   Back to index