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

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

?? dot11test.c

?? PNE 3.3 wlan source code, running at more than vxworks6.x version
?? C
?? 第 1 頁 / 共 4 頁
字號:
/* dot11Test.c - Routines for managing driver from target/host shell *//*  * Copyright (c) 2004-2006 Wind River Systems, Inc.  * * The right to copy, distribute, modify or otherwise make use  * of this software may be licensed only pursuant to the terms  * of an applicable Wind River license agreement.  *//* Modification History--------------------02d,15mar06,rb  Added test routines for ACL and WEP key mapping02c,27feb06,rb  Changes from code inspection02b,14feb06,rb  Add VLAN routines02a,11nov05,rb  Added mSSID feature01z,31oct05,rb  Fix to SPR 114576 - dot11Scan() does not recognise specific                 SSIDs01y,28sep05,rb  Remove warnings01x,28sep05,rb  Fix APIGEN Errors01w,23sep05,rb  Fixed up header01v,22sep05,rb  Improve descriptions for APIGEN01u,22sep05,rb  Removed warning on RTP Ioctl access01t,12sep05,rb  Added dot11ScanTypeSet/Get01s,09sep05,rb  Added init routine for project facility inclusion01r,25aug05,rb  Added API to enable 11d01q,09aug05,rb  Added dot11BeaconSet()01p,04aug05,rb  Added dot11ChannelListGet()01o,30jun05,rb  Added dot11Scan() routine01n,20may05,rb  Added get routines for short/long retry01m,17may05,rb  Added new calls to set security IOCTLs01l,03may05,???  added CTS/RTS and Fragmentation calls01k,29apr05,rb  Added wep key call01j,26apr05,rb  Added rate setting call01i,14apr05,rb  Added support for Transmit Power Scaling (WIOCSTXPOWERSCALE)01h,11apr05,rjh fix capitalization on stdlib.h01g,11apr05,rjh fix capitalization of ioLib.h01f,22mar05,rjh Added more routines01e,24mar05,rb  Oops - minor 5.5 compilation problem01d,24mar05,rb  Added Base 6 RTP capability01c,21mar05,rb  Even more routines01b,08mar05,rb  Added more routines01a,25feb05,rb  created*//*DESCRIPTIONThis file provides a series of APIs for managing the 802.11 driver.  These canbe called programatically or through the shell (to aid in automated testing, for example).  They also serve as a demonstration of the preferred usage ofthe management API to this driver.This library is meant to be used in vxWorks 5.5.x and 6.x, and should work with both network stacks.  Note that these calls can only be used in an RTP invxWorks 6.1 and higher, since operating system support for the MUX IOCTL passthrough was not added until vxWorks 6.1.  Kernel mode management is supported in all versions of vxWorks 6.xSEE ALSOWind River Wireless Ethernet Driver 2.2 for vxWorks 5 User's Guide Wind River Wireless Ethernet Driver 2.2 for vxWorks 6 User's Guide INCLUDE FILES: drv/wlan/dot11UsrLib.h*//* includes */#include <vxWorks.h>#include <stdio.h>#include <muxLib.h>#ifdef _WRS_KERNEL #include <muxTkLib.h>#include <endLib.h>#endif /* _WRS_KERNEL */#include <ioLib.h>#include <errnoLib.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <net/inet.h>#include <errno.h>/* This is the only include file that should be necessary to manage the device.The header file dot11Lib.h is for internal use only. */#include <drv/wlan/dot11UsrLib.h>#include <drv/wlan/dot11Test.h>/* This is the name of the wireless interface.  It is defined in dot11Lib.h,but to avoid pulling it in, */#define DOT11_IFNAME "wls"/* Local Prototypes */#ifndef _WRS_KERNELLOCAL STATUS dot11TestIoctlRtp(int ifNum, int cmd, caddr_t data);#endif /* _WRS_KERNEL *//* This is a duplicate of he structure in dot11Lib.c, but the structure in dot11Lib.c is not accessable from an RTP */const char * dot11ModeString[] =                               {"NONE",               /* 00000b */                               "802.11a",            /* 00001b */                               "802.11b",            /* 00010b */                               "802.11a/b",          /* 00011b */                               "802.11g",            /* 00100b */                               "802.11a/g",          /* 00101b */                               "802.11b/g",          /* 00110b */                               "802.11a/b/g",        /* 00111b */                               "turboG",             /* 01000b */                               "802.11a+tG",         /* 01001b */                               "802.11b+tG",         /* 01010b */                               "802.11a/b+tG",       /* 01011b */                               "802.11g+tG",         /* 01100b */                               "802.11a/g+tG",       /* 01101b */                               "802.11b/g+tG",       /* 01110b */                               "802.11a/b/g+tG",     /* 01111b */                               "turboA",             /* 10000b */                               "802.11a+tA",         /* 10001b */                               "802.11b+tA",         /* 10010b */                               "802.11a/b+tA",       /* 10011b */                               "802.11g+tA",         /* 10100b */                               "802.11a/g+tA",       /* 10101b */                               "802.11b/g+tA",       /* 10110b */                               "802.11a/b/g+tA",     /* 10111b */                               "turboG + turboA",    /* 11000b */                               "802.11a+tG+tA",      /* 11001b */                               "802.11b+tG+tA",      /* 11010b */                               "802.11a/b+tG+tA",    /* 11011b */                               "802.11g+tG+tA",      /* 11100b */                               "802.11a/g+tG+tA",    /* 11101b */                               "802.11b/g+tG+tA",    /* 11110b */                               "ANY"};  /* 11111b *//****************************************************************************** dot11TestInit - Empty stub function to force inclusion of the module*** RETURNS: void** ERRNO: N/A** \NOMANUAL**/VOID dot11TestInit(void)    {    return;    }/****************************************************************************** dot11TestIoctl - Calls the IOCTL for the wireless device** This routine is a wrapper function that will call the wireless IOCTL * regardless of the operating system and mode.** RETURNS: the results of the IOCTL call, typically OK, ERROR, or EINVAL** ERRNO: N/A*/STATUS dot11TestIoctl    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    int cmd,                  /* IOCTL command from dot11UsrLib.h */    caddr_t data              /* Data to pass to IOCTL */    )    {    STATUS status;    void * pCookie;#ifdef _WRS_KERNEL    /* This is the code to call the IOCTL in vxWorks 5.5.x */    if ((pCookie = muxTkCookieGet(DOT11_IFNAME, ifNum)) == NULL)        {        return ERROR;        }    status = muxIoctl(pCookie, cmd, data);#else /* _WRS_KERNEL */    /* This is the call to get to the IOCTLs from an RTP in vxWorks 6.x */	status = dot11TestIoctlRtp(ifNum, cmd, data);#endif /* _WRS_KERNEL */    return status;    }#ifndef _WRS_KERNEL/****************************************************************************** dot11TestIoctlRtp - Calls the IOCTL for the wireless device from an RTP** This routine is a wrapper function that calls the wireless IOCTL through the* newly added SIOCMUXPASSTHRU** RETURNS: the results of the IOCTL call, typically OK, ERROR, or EINVAL** ERRNO: N/A*/LOCAL STATUS dot11TestIoctlRtp    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    int cmd,                  /* IOCTL command from dot11UsrLib.h */    caddr_t data              /* Data to pass to IOCTL */    )	{		DOT11_STATS stats;	int fd;	int status;	MUX_PASSTHRU passThru;		strcpy(passThru.name, "wls");	passThru.unit = ifNum;	passThru.cmd = cmd;	passThru.pData = (void *)data;		if ((fd = socket(AF_INET, SOCK_RAW, 0)) <= 0)		{		printf("dot11TestIoctl: socket() returned %d.  Errno = 0x%x Exiting\n",			fd, errnoGet());		exit(-1);		}	status =  ioctl(fd, SIOCMUXPASSTHRU, (int)&passThru); 	 	close(fd); 	 	return status;	}#endif/****************************************************************************** dot11SSIDSet - Sets the SSID of the indicated interface** This routine is a wrapper function that will call WIOCSSSID with the* specified parameter.  <ssid> is a character string of at most 32 bytes, not* including the NULL-terminator.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11SSIDSet    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    char * ssid               /* char buffer with SSID to set */    )    {    return dot11TestIoctl(ifNum, WIOCSSSID, (caddr_t)ssid);    }/****************************************************************************** dot11SSIDGet - Gets the connected and desired SSID of the indicated interface** This routine is a wrapper function that will call WIOCGSSID with the* specified parameter, and display the current CONNECTED and DESIRED SSIDs* to the console.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11SSIDGet    (    int ifNum                 /* Interface number, ie. the '0' in wls0 */    )    {    UINT8 ssid[DOT11_SSID_LEN + 1];    STATUS status;    if ((status = dot11TestIoctl(ifNum, WIOCGDESIREDSSID, (caddr_t)ssid))         != OK)        {        printf("dot11SSIDGet: WIOCGDESIREDSSID failed with return code = %d\n",               status);        return status;        }        printf("dot11SSIDGet: Desired   SSID = \"%s\"\n", ssid);    if ((status = dot11TestIoctl(ifNum, WIOCGCONNECTEDSSID, (caddr_t)ssid))        != OK)        {        printf("dot11SSIDGet: WIOCGCONNECTEDSSID fail with return code = %d\n",               status);        return status;        }    printf("dot11SSIDGet: Connected SSID = \"%s\"\n", ssid);    return OK;    }/****************************************************************************** dot11ModeSet - Sets the SME Mode of the indicated interface** This routine is a wrapper function that will call WIOCSDOT11MODE with the* specified parameter. <mode> can be one of *    DOT11_MODE_NONE            0*    DOT11_MODE_ESS             1*    DOT11_MODE_IBSS            2*    DOT11_MODE_AP              3** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ModeSet    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    int mode                  /* Mode to set: 0=none, 1=ess, 2=ibss, 3=ap */    )    {    return dot11TestIoctl(ifNum, WIOCSDOT11MODE, (caddr_t)mode);    }/****************************************************************************** dot11ModeNone - Sets the SME Mode of the indicated interface to NONE** This routine is a wrapper function that will call WIOCSDOT11MODE with the* DOT11_MODE_NONE parameter to place the SME into NONE mode.  This will stop* device function completely and disable the radio.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ModeNone    (    int ifNum                 /* Interface number, ie. the '0' in wls0 */    )    {    return dot11TestIoctl(ifNum, WIOCSDOT11MODE, (caddr_t)0);    }/****************************************************************************** dot11ModeEss - Sets the SME Mode of the indicated interface to ESS** This routine is a wrapper function that will call WIOCSDOT11MODE to * place the device into ESS mode.  The wireless interface should be attached* to the network stack for normal communications.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ModeEss    (    int ifNum                 /* Interface number, ie. the '0' in wls0 */    )    {    return dot11TestIoctl(ifNum, WIOCSDOT11MODE, (caddr_t)1);    }/****************************************************************************** dot11ModeIbss - Sets the SME Mode of the indicated interface to IBSS mode** This routine is a wrapper function that will call WIOCSDOT11MODE to place* the device into IBSS mode. The wireless interface should be attached* to the network stack for normal communications.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ModeIbss    (    int ifNum                 /* Interface number, ie. the '0' in wls0 */    )    {    return dot11TestIoctl(ifNum, WIOCSDOT11MODE, (caddr_t)2);    }/****************************************************************************** dot11ModeAp - Sets the SME Mode of the indicated interface to AP mode** This routine is a wrapper function that will call WIOCSDOT11MODE to place* the device into AP mode.  Note that in order for AP mode to be functional,* the Learning Bridge should also be up, and have this wireless interface* configured as a bridge port.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ModeAp    (    int ifNum                 /* Interface number, ie. the '0' in wls0 */    )    {    return dot11TestIoctl(ifNum, WIOCSDOT11MODE, (caddr_t)3);    }/****************************************************************************** dot11PmSet - Sets the Power Management mode on or off** This routine is a wrapper function that will call WIOCSPWRMAN with the* specified parameter.  <pmEnabled> will take the value TRUE or FALSE, with* TRUE enabling power management mode.  This call is only meaningful in * ESS mode, and will not have any effect in other modes, although the state* of this flag will be maintained.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11PmSet    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    BOOL pmEnabled            /* TRUE to turn PM on, FALSE for off */    )    {    return dot11TestIoctl(ifNum, WIOCSPWRMAN, (caddr_t)pmEnabled);    }/****************************************************************************** dot11ChannelSet - Sets the Channel of the indicated interface** This routine is a wrapper function that will call WIOCSCHANNEL with the* desired channel and change to that channel.  The channel should be in* the set returned by dot11ChannelListGet(), or else ERROR will be returned* and no change effected.** RETURNS: the results of the IOCTL call, typically OK, ERROR, EINVAL** ERRNO: N/A*/STATUS dot11ChannelSet    (    int ifNum,                /* Interface number, ie. the '0' in wls0 */    int channel               /* Channel number to change to */    )

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本一道波多野结衣一区二区| 色综合天天综合网天天狠天天| 亚洲精品伦理在线| 亚洲欧洲综合另类在线| 国产精品网友自拍| 最新成人av在线| 亚洲久本草在线中文字幕| 亚洲人成7777| 丝袜亚洲另类欧美| 久久精品国产久精国产| 国产一本一道久久香蕉| 国产成人精品www牛牛影视| 国产精品白丝jk白祙喷水网站| 国产精品中文字幕一区二区三区| 国产精品亚洲一区二区三区在线| 国产91精品久久久久久久网曝门| 国产91精品精华液一区二区三区 | 精品一区二区三区免费观看| 精品一区二区三区在线播放视频 | 欧美系列亚洲系列| 678五月天丁香亚洲综合网| 精品欧美一区二区久久| 国产精品情趣视频| 一个色综合av| 国内一区二区视频| jlzzjlzz国产精品久久| 欧美视频一二三区| 久久久五月婷婷| 亚洲激情男女视频| 国产美女精品人人做人人爽| 91麻豆swag| 久久精品综合网| 亚洲成人福利片| 成人av网址在线| 欧美一级精品在线| 最新日韩av在线| 久久99久久精品欧美| 91免费观看视频| 日韩三级视频在线看| 亚洲人吸女人奶水| 国模无码大尺度一区二区三区| 色综合天天综合网国产成人综合天| 日韩一区二区三区在线| 亚洲精品日韩专区silk| 国产福利精品一区| 欧美一二三区在线观看| 一区二区三区四区乱视频| 国产一区二区三区在线观看免费| 欧美视频第二页| 18成人在线视频| 国产精品综合在线视频| 日韩午夜在线影院| 亚洲午夜久久久| 色综合久久88色综合天天6| 久久精品视频免费观看| 男男视频亚洲欧美| 在线播放中文一区| 亚洲国产另类av| 色综合久久久久网| 亚洲久本草在线中文字幕| 成人精品国产一区二区4080| 亚洲精品在线三区| 国模一区二区三区白浆| 日韩欧美一区二区久久婷婷| 香港成人在线视频| 欧美这里有精品| 亚洲综合久久久| 一本色道a无线码一区v| 亚洲欧洲制服丝袜| 91在线无精精品入口| 国产精品国产自产拍高清av| 丁香婷婷综合网| 精品1区2区在线观看| 国产馆精品极品| 国产日韩欧美激情| 懂色av一区二区三区蜜臀| 中文字幕欧美日本乱码一线二线| 国产在线精品一区二区三区不卡 | 欧美性猛交xxxxxx富婆| 一区二区三区在线免费播放| 色综合久久久久久久久久久| 亚洲欧美电影一区二区| 色偷偷久久人人79超碰人人澡| 一区二区三区高清| 欧美日韩国产小视频在线观看| 亚洲不卡av一区二区三区| 欧美剧情片在线观看| 久久成人免费电影| 国产精品天美传媒| 欧美日韩在线综合| 黑人巨大精品欧美黑白配亚洲| 久久九九99视频| 91国偷自产一区二区三区观看 | 日韩国产在线一| 精品蜜桃在线看| 99久久久无码国产精品| 亚洲综合免费观看高清完整版在线 | 亚洲欧洲三级电影| 欧美羞羞免费网站| 日本三级亚洲精品| 欧美激情综合五月色丁香小说| 色综合久久中文综合久久牛| 日本不卡123| 最近日韩中文字幕| 日韩欧美中文字幕一区| av电影一区二区| 日韩不卡一区二区三区| 亚洲国产精华液网站w| 欧美日韩久久不卡| zzijzzij亚洲日本少妇熟睡| 亚洲午夜免费电影| 国产精品无遮挡| 日韩欧美在线网站| 91美女在线视频| 国产一区二区三区免费播放| 亚洲另类色综合网站| 久久久高清一区二区三区| 欧美日韩高清在线| av一区二区三区黑人| 精品一区二区三区免费播放| 一区二区成人在线| 中文字幕在线一区免费| 26uuu精品一区二区在线观看| 91高清视频在线| 成a人片国产精品| 国产福利一区在线| 久久激情综合网| 日韩av电影一区| 亚洲成人第一页| 一区二区三区中文字幕在线观看| 欧美精品一区二区久久久| 欧美日韩免费视频| 欧洲中文字幕精品| 99免费精品视频| 成人av免费在线播放| 久久国产欧美日韩精品| 日本美女一区二区三区| 亚洲国产成人av网| 中文字幕一区二区三区精华液| 精品入口麻豆88视频| 91精品国产综合久久久久久| 在线观看国产91| 97se亚洲国产综合自在线不卡| 国产成人精品综合在线观看| 国产综合色精品一区二区三区| 免费日韩伦理电影| 蜜臀精品一区二区三区在线观看| 视频在线观看一区| 日本在线观看不卡视频| 蜜桃av一区二区在线观看| 日韩va欧美va亚洲va久久| 天天操天天色综合| 婷婷久久综合九色综合绿巨人| 一区二区三区色| 午夜精品国产更新| 奇米精品一区二区三区四区| 免费成人在线观看| 国产一区不卡视频| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久久精品噜噜噜成人av农村| 亚洲黄色片在线观看| 一区二区在线观看不卡| 亚洲综合色噜噜狠狠| 亚洲成人精品一区| 狠狠狠色丁香婷婷综合激情| 国产成人自拍高清视频在线免费播放| 成人免费视频一区二区| 91丝袜呻吟高潮美腿白嫩在线观看| 色综合久久综合| 7777精品伊人久久久大香线蕉最新版 | 一区二区三区成人在线视频| 午夜欧美2019年伦理| 蜜桃av一区二区三区电影| 国产成人精品免费| 91精品福利在线| 日韩美女在线视频| 国产精品情趣视频| 亚洲国产精品久久不卡毛片| 精品影视av免费| 色菇凉天天综合网| 日韩欧美高清在线| 亚洲人成伊人成综合网小说| 欧美bbbbb| 99re免费视频精品全部| 日韩你懂的电影在线观看| 中文一区二区在线观看 | 日韩午夜激情电影| 国产精品你懂的| 男人操女人的视频在线观看欧美 | 全国精品久久少妇| 成人av一区二区三区| 欧美一级黄色录像| 一区二区三区在线视频观看 | 日日夜夜精品免费视频| 成人美女视频在线观看18| 欧美日韩一区在线| 国产精品国产三级国产有无不卡| 日韩国产欧美在线观看| 99在线热播精品免费| 久久奇米777|