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

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

?? 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 */    )

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久蜜臀| 欧美mv和日韩mv国产网站| 国产精品不卡一区二区三区| 成人免费视频视频在线观看免费 | 国产91精品免费| 国产亚洲欧洲997久久综合 | 91老司机福利 在线| 玉米视频成人免费看| 欧美人伦禁忌dvd放荡欲情| 日韩激情一区二区| 久久久久成人黄色影片| 色综合色综合色综合| 日日摸夜夜添夜夜添精品视频| 精品国产制服丝袜高跟| 国产精品一二三四| 亚洲女人的天堂| 欧美一区二区免费观在线| 国产激情偷乱视频一区二区三区 | 一区二区三区在线观看国产| 欧美日韩高清在线播放| 国产经典欧美精品| 亚洲国产美女搞黄色| 2021久久国产精品不只是精品| av亚洲精华国产精华精华| 偷拍日韩校园综合在线| 欧美国产丝袜视频| 777色狠狠一区二区三区| 高清不卡一二三区| 图片区小说区区亚洲影院| 欧美激情一区三区| 在线不卡欧美精品一区二区三区| 国产福利一区二区三区在线视频| 亚洲一区成人在线| 国产色婷婷亚洲99精品小说| 欧日韩精品视频| 成人夜色视频网站在线观看| 日韩黄色片在线观看| 日韩一区在线看| 精品成人佐山爱一区二区| 欧美性大战久久久| 成人网男人的天堂| 九色综合国产一区二区三区| 午夜欧美视频在线观看| 亚洲天天做日日做天天谢日日欢| 日韩欧美国产综合| 欧美精品第一页| 91在线你懂得| 成人激情小说网站| 国产在线精品一区二区三区不卡| 亚洲成人一区在线| 洋洋av久久久久久久一区| 日本一区二区三区高清不卡| 精品国产成人系列| 欧美一二三在线| 欧美视频在线一区二区三区| 99精品久久99久久久久| 粉嫩aⅴ一区二区三区四区五区| 奇米影视一区二区三区| 五月天中文字幕一区二区| 亚洲女同ⅹxx女同tv| 亚洲色图欧美偷拍| 国产精品乱码一区二区三区软件| xfplay精品久久| 久久先锋影音av鲁色资源| 日韩欧美电影一区| 欧美大片一区二区| 日韩午夜小视频| 日韩三级在线观看| 精品国产污网站| 精品国产一二三| 久久综合国产精品| 国产拍揄自揄精品视频麻豆| 久久久www免费人成精品| 精品国产91九色蝌蚪| 久久久久一区二区三区四区| 久久免费视频一区| 欧美韩国日本不卡| 国产精品视频麻豆| 久久福利视频一区二区| 免费av网站大全久久| 日本aⅴ精品一区二区三区| 日韩vs国产vs欧美| 麻豆免费看一区二区三区| 另类小说一区二区三区| 狠狠色综合日日| 粉嫩av亚洲一区二区图片| 91小视频免费观看| 欧美日韩在线观看一区二区 | 成人欧美一区二区三区白人| 国产精品萝li| 一区二区三区中文字幕| 亚洲一二三四在线观看| 日韩成人精品在线观看| 国产一区在线精品| 成人激情黄色小说| 在线免费观看日本一区| 欧美一级搡bbbb搡bbbb| 久久色中文字幕| 成人免费小视频| 亚洲在线视频网站| 免费看欧美女人艹b| 成人性生交大片免费看视频在线 | 国产一二精品视频| 99久久免费视频.com| 欧美绝品在线观看成人午夜影视 | 国产日韩欧美a| 亚洲精品久久嫩草网站秘色| 秋霞成人午夜伦在线观看| 国产麻豆精品一区二区| 91麻豆精东视频| 日韩欧美精品三级| 亚洲美女淫视频| 激情偷乱视频一区二区三区| 91无套直看片红桃| 日韩精品在线一区| 亚洲精品日日夜夜| 国产一区二区看久久| 精品视频在线免费观看| 国产欧美日韩久久| 日本欧美在线看| av色综合久久天堂av综合| 欧美一区二区三区公司| 国产精品久久看| 久久精品999| 欧美视频在线不卡| 国产精品久久久久久久久快鸭| 日韩精品成人一区二区在线| www.久久久久久久久| 精品精品国产高清a毛片牛牛| 亚洲免费视频成人| 国产盗摄精品一区二区三区在线| 欧美放荡的少妇| 亚洲色图视频网| 国产超碰在线一区| 日韩免费福利电影在线观看| 亚洲一级二级在线| 91免费观看视频| 欧美韩国日本一区| 国产老肥熟一区二区三区| 7777精品伊人久久久大香线蕉超级流畅 | 欧美xingq一区二区| 亚洲一区视频在线| 一本久道中文字幕精品亚洲嫩| 婷婷综合五月天| 91在线免费看| 国产精品看片你懂得| 国产一区二区三区在线观看免费| 在线播放视频一区| 亚洲国产精品久久不卡毛片| 一本色道久久综合亚洲aⅴ蜜桃| 久久亚洲一级片| 国内外精品视频| 欧美变态tickling挠脚心| 日韩成人一区二区三区在线观看| 欧美影院一区二区| 亚洲午夜影视影院在线观看| 99国产精品久久久| 亚洲人午夜精品天堂一二香蕉| 成人国产精品视频| 国产精品久久久久久久久动漫| 高清免费成人av| 国产精品国产三级国产普通话蜜臀| 国产成人aaa| 中文字幕欧美日本乱码一线二线| 国产一区福利在线| 国产欧美一区二区三区网站| 国产91露脸合集magnet| 国产日韩欧美a| 99国产精品久久久久久久久久久| 国产精品国产自产拍在线| 91在线免费播放| 亚洲综合一区二区三区| 欧美日韩在线精品一区二区三区激情 | 国产精品―色哟哟| 97精品久久久久中文字幕 | 91年精品国产| 亚洲综合一区二区精品导航| 欧美裸体一区二区三区| 日韩av在线发布| 久久久不卡网国产精品二区| 国产成人激情av| 尤物视频一区二区| 91精品国产色综合久久ai换脸 | 三级影片在线观看欧美日韩一区二区| 欧美吻胸吃奶大尺度电影| 日av在线不卡| 久久久九九九九| 91在线高清观看| 天天av天天翘天天综合网| 2021中文字幕一区亚洲| aa级大片欧美| 日本美女一区二区三区视频| 久久久亚洲欧洲日产国码αv| 成人app网站| 日韩av电影免费观看高清完整版| 欧美xxxx老人做受| 色综合色狠狠综合色| 日本成人在线看| 国产精品国产三级国产专播品爱网| 欧美伊人久久久久久久久影院 |