亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wt_frm.c

?? linux,red ,test,driver,need
?? C
?? 第 1 頁 / 共 2 頁
字號:
#include "wtprecomp.h"/*--------------------------------------------------------------* p80211addr_to_str** Formats a 6 byte IEEE 802 address as a string of the form* xx:xx:xx:xx:xx:xx  where the bytes are in hex.  No library* functions are used to enhance portability.** Arguments:*	buf	char buffer, destination for string format*		48 bit address.  Must be at least 18 bytes long.*	addr	UINT8 buffer containing the ieee802 48 bit address*		we're converting from.** Returns:*	nothing** Side effects:*	the contents of the space pointed to by buf is filled*	with the textual representation of addr.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void p802addr_to_str(char *buf, UINT8 * addr){	int strindex = 0;	int addrindex;	for (addrindex = 0; addrindex < 6; addrindex++) {		buf[strindex] = ((addr[addrindex] & 0xf0) >> 4) > 9 ?		    'a' + (((addr[addrindex] & 0xf0) >> 4) - 10) :		    '0' + ((addr[addrindex] & 0xf0) >> 4);		buf[strindex + 1] = (addr[addrindex] & 0x0f) > 9 ?		    'a' + ((addr[addrindex] & 0x0f) - 10) :		    '0' + (addr[addrindex] & 0x0f);		buf[strindex + 2] = ':';		strindex += 3;	}	buf[strindex] = '\0';	return;}/*--------------------------------------------------------------* wt_mgmt_encode_beacon** Receives an fr_mgmt struct with its len and buf set.  Fills* in the rest of the members as far as possible.  On entry len* is the length of the buffer, on return len is the actual length* of the frame with all the currently encoded fields.  For * frames where the caller adds variable/optional IEs, the caller* will have to update the len field.* On entry Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len, buf, and priv are zero** Arguments:*	f	frame structure** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_encode_beacon(wlan_fr_beacon_t * f){	f->type = WLAN_FSTYPE_BEACON;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(f->len >= WLAN_BEACON_FR_MAXLEN);	/*-- Fixed Fields ----*/	f->ts = (UINT64 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))			    + WLAN_BEACON_OFF_TS);	f->bcn_int = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				 + WLAN_BEACON_OFF_BCN_INT);	f->cap_info = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				  + WLAN_BEACON_OFF_CAPINFO);	f->len =	    WLAN_HDR_A3_LEN + WLAN_BEACON_OFF_CAPINFO +	    sizeof(*(f->cap_info));	return;}/*--------------------------------------------------------------* wt_mgmt_decode_beacon** Given a complete frame in f->buf, sets the pointers in f to * the areas that correspond to the parts of the frame.** Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len and buf are zero* Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED.* --------------------------------------------------------------*/BOOL wt_mgmt_decode_beacon(wlan_fr_beacon_t * f){	wlan_ie_t *ie_ptr;	UINT8 *body;	PWTWLAN_RXBUF pWtRxBuf;	        //printk(LEVEL " Now we entered  function %s  !!!\n", __FUNCTION__);		f->type = WLAN_FSTYPE_BEACON;	pWtRxBuf = (PWTWLAN_RXBUF)f->buf;	body = (UINT8 *)pWtRxBuf->RXHwBuf.pHwRxBuf->Buffer;	f->len = ieee2host16(pWtRxBuf->RXHwBuf.pHwRxBuf->RxStatus.RecvBodyLen);	f->hdr = (p80211_hdr_t *)pWtRxBuf->RXHwBuf.pHwRxBuf->dot11Head;	/*        ASSERT(WLAN_FTYPE_MGMT ==                    WLAN_GET_FC_FTYPE(ieee2host16(f->hdr->a3.fc)));        ASSERT(WLAN_FSTYPE_BEACON ==                    WLAN_GET_FC_FSTYPE(ieee2host16(f->hdr->a3.fc))); */	/*-- Fixed Fields ----*/	f->ts = (UINT64 *) ( body + WLAN_BEACON_OFF_TS );	f->bcn_int = (UINT16 *) ( body + WLAN_BEACON_OFF_BCN_INT);	f->cap_info = (UINT16 *) ( body + WLAN_BEACON_OFF_CAPINFO);	/*-- Information elements */	ie_ptr = (wlan_ie_t *) ( body	+ WLAN_BEACON_OFF_SSID);	while (((UINT8 *) ie_ptr) < ( body + f->len)) {		switch (ie_ptr->eid) 		{		case WLAN_EID_SSID:			f->ssid = (wlan_ie_ssid_t *) ie_ptr;			break;		case WLAN_EID_SUPP_RATES:			f->supp_rates = (wlan_ie_supp_rates_t *) ie_ptr;			break;		case WLAN_EID_DS_PARMS:			f->ds_parms = (wlan_ie_ds_parms_t *) ie_ptr;			break;		case WLAN_EID_CF_PARMS:			f->cf_parms = (wlan_ie_cf_parms_t *) ie_ptr;			break;		case WLAN_EID_IBSS_PARMS:			f->ibss_parms = (wlan_ie_ibss_parms_t *) ie_ptr;			break;		case WLAN_EID_ERP :                			f->erp_parms = (wlan_ie_erp_t *) ie_ptr;			break;		case WLAN_EID_EXT_RATES	:          			f->ext_rates = (wlan_ie_extend_rates_t *) ie_ptr;			break;		case WLAN_EID_TIM:			f->tim = (wlan_ie_tim_t *) ie_ptr;			break;				case WLAN_EID_COUNTRY :			f->contry_parms = (wlan_ie_country_t *) ie_ptr;			break;		case WLAN_EID_FH_PARMS:			f->fh_parms = (wlan_ie_fh_parms_t *) ie_ptr;			break;		case WLAN_EID_FH_PATTERN :         			f->fh_pattern = (wlan_ie_fhpattern_t *) ie_ptr;			break;		case WLAN_EID_FH_PATTERN_TABLE :   			f->fh_patterntable = (wlan_ie_fhpatterntable_t *) ie_ptr;			break;		case WLAN_EID_POWER_CONSTRAINT :   			f->powerconstraint = (wlan_ie_powerconstraint_t *) ie_ptr;			break;		case WLAN_EID_TPC_REPORT :         			f->tpc_report = (wlan_ie_tpcreport_t *) ie_ptr;			break;		case WLAN_EID_SW_CHAN_ANN :        			f->channelswa = (wlan_ie_channelswa_t *) ie_ptr;			break;		case WLAN_EID_QUIET :              			f->quiet_parms = (wlan_ie_quiet_t *) ie_ptr;			break;		case WLAN_EID_IBSS_DFS :           			f->ibbss_dfs = (wlan_ie_ibssdfs_t *) ie_ptr;			break;		default:/*                        WLAN_LOG_WARNING1(                                                                "Unrecognized EID=%dd in beacon decode.\n",ie_ptr->eid);                        WLAN_HEX_DUMP(3, "frm w/ bad eid:", f->buf, f->len );                        */			break;		}		ie_ptr =		    (wlan_ie_t *) (((UINT8 *) ie_ptr) + 2 + ie_ptr->len);	}	{		if(((UINT8 *) ie_ptr) != ( body + f->len))			{				printk(LEVEL " Bad EID length in beacon .\n");				return FALSE;			}		else			return TRUE;	}}/*--------------------------------------------------------------* wt_mgmt_encode_ibssatim** Receives an fr_mgmt struct with its len and buf set.  Fills* in the rest of the members as far as possible.  On entry len* is the length of the buffer, on return len is the actual length* of the frame with all the currently encoded fields.  For * frames where the caller adds variable/optional IEs, the caller* will have to update the len field.* On entry Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len, buf, and priv are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_encode_ibssatim(wlan_fr_ibssatim_t * f){	f->type = WLAN_FSTYPE_ATIM;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(f->len >= WLAN_ATIM_FR_MAXLEN);	/*-- Fixed Fields ----*/	/*-- Information elements */	f->len = WLAN_HDR_A3_LEN;	return;}/*--------------------------------------------------------------* wt_mgmt_decode_ibssatim** Given a complete frame in f->buf, sets the pointers in f to * the areas that correspond to the parts of the frame.** Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len and buf are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_decode_ibssatim(wlan_fr_ibssatim_t * f){	f->type = WLAN_FSTYPE_ATIM;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(WLAN_FTYPE_MGMT ==		    WLAN_GET_FC_FTYPE(ieee2host16(f->hdr->a3.fc)));	ASSERT(WLAN_FSTYPE_ATIM ==		    WLAN_GET_FC_FSTYPE(ieee2host16(f->hdr->a3.fc)));	/*-- Fixed Fields ----*/	/*-- Information elements */	return;}/*--------------------------------------------------------------* wt_mgmt_encode_disassoc** Receives an fr_mgmt struct with its len and buf set.  Fills* in the rest of the members as far as possible.  On entry len* is the length of the buffer, on return len is the actual length* of the frame with all the currently encoded fields.  For * frames where the caller adds variable/optional IEs, the caller* will have to update the len field.* On entry Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len, buf, and priv are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_encode_disassoc(wlan_fr_disassoc_t * f){	//printk(LEVEL " %s: UNVERIFIED. NONV3.\n", __FUNCTION__);	f->type = WLAN_FSTYPE_DISASSOC;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(f->len >= WLAN_DISASSOC_FR_MAXLEN);	/*-- Fixed Fields ----*/	f->reason = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				+ WLAN_DISASSOC_OFF_REASON);	f->len =	    WLAN_HDR_A3_LEN + WLAN_DISASSOC_OFF_REASON +	    sizeof(*(f->reason));	return;}/*--------------------------------------------------------------* wt_mgmt_decode_disassoc** Given a complete frame in f->buf, sets the pointers in f to * the areas that correspond to the parts of the frame.** Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len and buf are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.--------------------------------------------------------------*/void wt_mgmt_decode_disassoc(wlan_fr_disassoc_t * f){//	printk(LEVEL " %s: UNVERIFIED. NONV3.\n", __FUNCTION__);	f->type = WLAN_FSTYPE_DISASSOC;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(WLAN_FTYPE_MGMT ==		    WLAN_GET_FC_FTYPE(ieee2host16(f->hdr->a3.fc)));	ASSERT(WLAN_FSTYPE_DISASSOC ==		    WLAN_GET_FC_FSTYPE(ieee2host16(f->hdr->a3.fc)));	/*-- Fixed Fields ----*/	f->reason = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				+ WLAN_DISASSOC_OFF_REASON);	/*-- Information elements */	return;}/*--------------------------------------------------------------* wt_mgmt_encode_assocreq** Receives an fr_mgmt struct with its len and buf set.  Fills* in the rest of the members as far as possible.  On entry len* is the length of the buffer, on return len is the actual length* of the frame with all the currently encoded fields.  For * frames where the caller adds variable/optional IEs, the caller* will have to update the len field.* On entry Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len, buf, and priv are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_encode_assocreq(wlan_fr_assocreq_t * f){//	printk(LEVEL " %s: UNVERIFIED. NONV3.\n", __FUNCTION__);	f->type = WLAN_FSTYPE_ASSOCREQ;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(f->len >= WLAN_ASSOCREQ_FR_MAXLEN);	/*-- Fixed Fields ----*/	f->cap_info = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				  + WLAN_ASSOCREQ_OFF_CAP_INFO);	f->listen_int = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				    + WLAN_ASSOCREQ_OFF_LISTEN_INT);	f->len = WLAN_HDR_A3_LEN +	    WLAN_ASSOCREQ_OFF_LISTEN_INT + sizeof(*(f->listen_int));	return;}/*--------------------------------------------------------------* wt_mgmt_decode_assocreq** Given a complete frame in f->buf, sets the pointers in f to * the areas that correspond to the parts of the frame.** Assumptions:*	1) f->len and f->buf are already set*	2) f->len is the length of the MAC header + data, the CRC*	   is NOT included*	3) all members except len and buf are zero** Arguments:*	f	frame structure ** Returns:*	nothing** Side effects:*	frame  structure members are pointing at their*	respective portions of the frame buffer.* * STATUS: UNVERIFIED. NONV3.* --------------------------------------------------------------*/void wt_mgmt_decode_assocreq(wlan_fr_assocreq_t * f){	wlan_ie_t *ie_ptr;	printk(LEVEL " %s: UNVERIFIED. NONV3.\n", __FUNCTION__);	f->type = WLAN_FSTYPE_ASSOCREQ;	f->hdr = (p80211_hdr_t *) f->buf;	ASSERT(WLAN_FTYPE_MGMT ==		    WLAN_GET_FC_FTYPE(ieee2host16(f->hdr->a3.fc)));	ASSERT(WLAN_FSTYPE_ASSOCREQ ==		    WLAN_GET_FC_FSTYPE(ieee2host16(f->hdr->a3.fc)));	/*-- Fixed Fields ----*/	f->cap_info = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				  + WLAN_ASSOCREQ_OFF_CAP_INFO);	f->listen_int = (UINT16 *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				    + WLAN_ASSOCREQ_OFF_LISTEN_INT);	/*-- Information elements */	ie_ptr = (wlan_ie_t *) (WLAN_HDR_A3_DATAP(&(f->hdr->a3))				+ WLAN_ASSOCREQ_OFF_SSID);	while (((UINT8 *) ie_ptr) < (f->buf + f->len)) {		switch (ie_ptr->eid) {		case WLAN_EID_SSID:			f->ssid = (wlan_ie_ssid_t *) ie_ptr;			break;		case WLAN_EID_SUPP_RATES:			f->supp_rates = (wlan_ie_supp_rates_t *) ie_ptr;			break;		default:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线观看免费视频| 精品88久久久久88久久久| 国产精品护士白丝一区av| 成人黄色免费短视频| 国产网红主播福利一区二区| jizzjizzjizz欧美| 日韩—二三区免费观看av| 精品国产一区二区亚洲人成毛片| 国产99久久久国产精品免费看 | 96av麻豆蜜桃一区二区| 蜜臀国产一区二区三区在线播放 | 日韩电影免费在线| 久久只精品国产| 一本到高清视频免费精品| 青青草91视频| 亚洲综合免费观看高清完整版 | 亚洲精选一二三| 久久久亚洲精华液精华液精华液| 欧美日韩国产免费一区二区 | 国产精品久久久久久久久久免费看| 欧美日韩一本到| 欧美亚洲免费在线一区| caoporn国产一区二区| 国产九色sp调教91| 激情久久五月天| 狠狠色丁香婷综合久久| 日本成人在线网站| 亚洲mv大片欧洲mv大片精品| 日韩精彩视频在线观看| 亚洲电影在线免费观看| 婷婷成人激情在线网| 亚洲一卡二卡三卡四卡五卡| 亚洲在线观看免费视频| 亚洲国产精品久久久久秋霞影院 | 麻豆91精品91久久久的内涵| 美女视频免费一区| 国产福利一区二区三区| 成人综合激情网| 欧美综合天天夜夜久久| 91麻豆精品国产91久久久 | 精品日韩在线一区| 国产欧美一区二区精品仙草咪| 中文字幕二三区不卡| 一区二区免费在线| 久久91精品国产91久久小草| 国产91精品欧美| 欧美日韩在线播放三区| 国产清纯白嫩初高生在线观看91| 国产精品久久久久久久久果冻传媒| 亚洲精品视频在线看| 蜜桃视频第一区免费观看| 男人操女人的视频在线观看欧美| caoporm超碰国产精品| 日韩精品一区二区三区蜜臀| 国产精品乱人伦| 蜜桃免费网站一区二区三区| 欧美日韩视频在线一区二区| 欧美国产在线观看| 国产大陆精品国产| 久久综合狠狠综合久久激情| 亚洲成av人片| 欧美日韩一区二区三区视频| 欧美国产日韩精品免费观看| 国产精品资源在线| 精品福利一区二区三区免费视频| 国产精品人妖ts系列视频| 国产一区二区导航在线播放| 欧美一区三区四区| 日本不卡一区二区| 欧美一级淫片007| 不卡的av网站| 亚洲三级小视频| 色综合天天综合色综合av| 国产日韩精品久久久| 国产福利91精品| 国产精品久久久一区麻豆最新章节| 国产一区不卡精品| 国产精品美女视频| 在线一区二区三区四区五区| 午夜伊人狠狠久久| 日韩欧美国产午夜精品| 国产精品一区专区| 亚洲国产成人午夜在线一区| 成人动漫中文字幕| 一级做a爱片久久| 日韩亚洲欧美一区| 懂色av一区二区三区免费观看| 亚洲欧洲综合另类| 精品蜜桃在线看| 欧美性一二三区| 国产精品夜夜爽| 亚洲国产人成综合网站| 久久久精品人体av艺术| 欧美日韩国产免费| 91免费在线播放| 国产一二精品视频| 视频一区二区不卡| 亚洲一线二线三线视频| 中文字幕在线观看一区| 国产欧美中文在线| 欧美一二三区在线| 色综合久久综合中文综合网| 国产寡妇亲子伦一区二区| 青青草国产精品97视觉盛宴| 依依成人综合视频| 国产精品久久久久桃色tv| 欧美哺乳videos| 欧美日本在线看| 在线视频国产一区| 在线观看不卡视频| 99re成人精品视频| 懂色中文一区二区在线播放| 经典三级视频一区| 国产一区二区三区久久久| 免费成人美女在线观看| 日韩成人一区二区| 国产自产高清不卡| 国产精品综合一区二区| 国产mv日韩mv欧美| 91在线免费视频观看| 欧美综合一区二区| 欧美另类一区二区三区| 日韩免费一区二区| 精品国产乱码久久久久久1区2区 | 爽好多水快深点欧美视频| 蜜桃视频一区二区三区 | 精品亚洲免费视频| 成人av在线网站| 欧美探花视频资源| 日韩视频一区在线观看| 国产精品亲子伦对白| 亚洲一区在线观看网站| 久久国产婷婷国产香蕉| 不卡的av电影在线观看| 91精品国产一区二区三区香蕉| 精品日韩在线观看| 亚洲欧美色图小说| 国产在线国偷精品免费看| 91色.com| 亚洲欧洲色图综合| 国产高清亚洲一区| 日韩免费高清电影| 亚洲国产乱码最新视频| 成人动漫在线一区| 国产欧美一区二区精品秋霞影院| 午夜不卡在线视频| 91蜜桃免费观看视频| 国产人成亚洲第一网站在线播放| 亚洲成人福利片| 欧美日韩一区视频| 亚洲综合免费观看高清完整版在线 | 午夜电影一区二区三区| 色综合久久久久| 亚洲精品国产精华液| 色哟哟在线观看一区二区三区| 国产精品女同互慰在线看| 国产精品一二一区| 久久蜜桃av一区二区天堂 | 亚洲综合色网站| 7777精品伊人久久久大香线蕉| 午夜国产精品一区| 91精品国产欧美一区二区| 美女精品一区二区| 国产女人水真多18毛片18精品视频 | 欧洲精品在线观看| 亚洲 欧美综合在线网络| 日韩欧美色综合| a在线播放不卡| 亚洲 欧美综合在线网络| 久久久久久一级片| 99国产精品久久久久久久久久| 亚洲午夜精品网| 精品欧美黑人一区二区三区| 成人免费观看av| 青草国产精品久久久久久| 国产精品久久久久精k8 | 一本到不卡精品视频在线观看 | 亚洲人成7777| 日韩精品影音先锋| 色综合天天综合给合国产| 国产综合成人久久大片91| 亚洲h在线观看| 综合激情网...| 久久女同性恋中文字幕| 欧美日韩成人综合天天影院 | 亚洲国产成人porn| 国产精品国产馆在线真实露脸| 日韩三级免费观看| 欧美日韩精品免费观看视频| 成人黄色小视频| 福利一区二区在线观看| 国产麻豆一精品一av一免费| 奇米影视在线99精品| 亚洲综合男人的天堂| 亚洲激情校园春色| 亚洲一区二区偷拍精品| 亚洲欧美激情小说另类| 亚洲天堂免费在线观看视频| 国产精品高潮呻吟| 中文字幕欧美一|