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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩激情一区| 久久精品噜噜噜成人88aⅴ| 国产成人精品亚洲午夜麻豆| 欧美另类变人与禽xxxxx| 日韩理论在线观看| 成人av在线观| 精品国产污网站| 免费av成人在线| 日韩欧美美女一区二区三区| 肉色丝袜一区二区| 日韩亚洲欧美在线观看| 老色鬼精品视频在线观看播放| 欧美撒尿777hd撒尿| 亚洲视频 欧洲视频| 在线观看成人免费视频| 亚洲成av人影院在线观看网| 欧美肥妇free| 国产电影一区在线| 国产精品亚洲第一区在线暖暖韩国| 亚洲国产视频直播| 91精品一区二区三区在线观看| 亚洲国产精品一区二区www| 欧美日韩精品一区二区三区| 奇米色一区二区| 中文成人综合网| 91丨porny丨蝌蚪视频| 亚洲国产精品精华液网站| 欧美精品成人一区二区三区四区| 日韩精品电影一区亚洲| 欧美福利一区二区| 成人免费视频国产在线观看| 黄页网站大全一区二区| 欧美草草影院在线视频| 成人av动漫在线| 成人精品视频一区二区三区 | 综合久久国产九一剧情麻豆| 色狠狠一区二区| 国产91精品露脸国语对白| 一区二区三区**美女毛片| 精品久久久久久久久久久久包黑料| 国产成人一区二区精品非洲| 艳妇臀荡乳欲伦亚洲一区| 亚洲精品一区二区三区香蕉| 欧美日韩视频一区二区| 国产麻豆精品一区二区| 久99久精品视频免费观看| 亚洲成人777| 一区二区三区四区在线播放 | 成人精品免费网站| 国产在线播放一区三区四| 肉色丝袜一区二区| 亚洲一区二区欧美| 亚洲制服丝袜在线| 亚洲一区二区中文在线| **网站欧美大片在线观看| 中文字幕中文在线不卡住| 亚洲欧美一区二区三区久本道91| 一区二区三区中文字幕电影| 亚洲高清免费在线| 毛片基地黄久久久久久天堂| 欧美又粗又大又爽| 色激情天天射综合网| 欧美乱妇23p| 中文字幕巨乱亚洲| 亚洲成人av福利| 成人黄页在线观看| 日韩精品专区在线| 中文字幕佐山爱一区二区免费| 午夜免费欧美电影| 成人综合婷婷国产精品久久免费| 欧美色成人综合| 国产日韩欧美不卡在线| 日本人妖一区二区| 色婷婷综合在线| www一区二区| 亚洲国产综合视频在线观看| 成人亚洲一区二区一| 精品区一区二区| 午夜精品一区在线观看| 成人sese在线| 日本一区二区三区四区在线视频| 婷婷成人综合网| 欧美日韩亚洲综合| 亚洲天堂2014| 成人av综合在线| 国产欧美一区二区精品性色| 男人的天堂久久精品| 欧美日韩综合在线免费观看| 亚洲日本乱码在线观看| av电影一区二区| 国产精品久久久久国产精品日日| 精东粉嫩av免费一区二区三区| 中文字幕一区二区三| 蜜臀99久久精品久久久久久软件| 欧美挠脚心视频网站| 丝袜a∨在线一区二区三区不卡| 欧美三级资源在线| 亚洲成人三级小说| 欧美久久久影院| 美女视频黄 久久| 欧美tk—视频vk| 丁香桃色午夜亚洲一区二区三区| 国产欧美日韩卡一| 成人精品免费视频| 亚洲精品精品亚洲| 欧美综合久久久| 日韩av午夜在线观看| 欧美精品一区二区三区视频| 日本sm残虐另类| 国产精品天天摸av网| 91久久精品网| 久久99久久99| 一区二区三区产品免费精品久久75 | 91精品视频网| 精品无人码麻豆乱码1区2区| 中文字幕在线一区二区三区| 91黄色免费看| 国产成人av电影在线| 国产91色综合久久免费分享| 国产亚洲欧洲997久久综合| 色噜噜久久综合| 国产精品自拍av| 亚洲综合激情网| 国产欧美一区二区在线观看| 欧美偷拍一区二区| 99久久精品国产一区| 日本韩国一区二区三区视频| 国产iv一区二区三区| 奇米影视7777精品一区二区| 伊人夜夜躁av伊人久久| 久久亚洲影视婷婷| 欧美成人一区二区三区| 欧亚一区二区三区| 91蜜桃网址入口| 99久久婷婷国产综合精品| 激情小说欧美图片| 久久国产尿小便嘘嘘| 亚洲午夜免费视频| 亚洲国产视频直播| 亚洲成人一区二区在线观看| 亚洲激情男女视频| 亚洲一区欧美一区| 日韩精品一区第一页| 亚洲 欧美综合在线网络| 亚洲成人你懂的| 日韩一区欧美二区| 韩国av一区二区| 激情欧美一区二区三区在线观看| 国产在线乱码一区二区三区| 欧美老肥妇做.爰bbww视频| 91国偷自产一区二区三区观看| 91色在线porny| 色美美综合视频| 5858s免费视频成人| 久久亚洲一区二区三区四区| 欧美激情一区二区三区| 亚洲免费在线电影| 免费人成在线不卡| 国产成人av福利| 国产91富婆露脸刺激对白| 91免费视频观看| 91精品欧美福利在线观看| 精品免费一区二区三区| 国产精品久久久久久久午夜片| 亚洲国产精品久久人人爱蜜臀| 久久精品国产在热久久| 91免费版pro下载短视频| 欧美电影免费观看完整版| 综合欧美亚洲日本| 久久99国产精品免费网站| 99re热视频精品| 欧美精品一区二区三| 亚洲一区二区三区三| 国产福利一区二区三区| 欧美日本在线播放| 亚洲免费伊人电影| 国产一区二区久久| 91麻豆精品国产91久久久久| 国产精品久久久久影院亚瑟| 麻豆精品精品国产自在97香蕉 | 91久久精品午夜一区二区| 日日骚欧美日韩| 色美美综合视频| 亚洲精品视频在线| 99视频热这里只有精品免费| 国产亚洲综合色| 蜜桃av一区二区三区电影| 在线视频你懂得一区二区三区| 国产精品成人一区二区艾草| 成人毛片老司机大片| 久久久激情视频| 成人av一区二区三区| 中文字幕亚洲视频| 色综合久久久网| 一区二区激情视频| 69堂精品视频| 久久国产麻豆精品| 国产欧美精品在线观看| a级精品国产片在线观看| 亚洲视频免费看|