var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script);

#define SIOCSIWSTATS 0x8B0E  /* Unused */ #define SIOCGIWSTATS 0x8B0F  /* 获取 
/proc/net/wireless的stats */  
/* Mobile IP support */ 
#define SIOCSIWSPY 0x8B10  /* 设置spy 地址*/ 
#define SIOCGIWSPY 0x8B11  /* 获取spy信息(连接质量) */ 
 
/* Access Point manipulation */ #define SIOCSIWAP 
0x8B14  
/* 设置AP的mac地址 */ #define SIOCGIWAP 0x8B15  
/* 获取AP的mac地址 */ 
#define SIOCGIWAPLIST 0x8B17  /* 获取周围Ap信息列表 
*/ 
#define SIOCSIWSCAN 0x8B18  /* 开始扫描 */ #define SIOCGIWSCAN 0x8B19  
/* 获取扫描信息 */ 
 
/* 802.11 specific support */ #define SIOCSIWESSID 0x8B1A  /* 设置ESSID  */ #define SIOCGIWESSID 
0x8B1B  /* 获取ESSID */ #define SIOCSIWNICKN 0x8B1C  /* 设置节点别名 */ #define SIOCGIWNICKN 0x8B1D  /* 获取节点别名 */

var script = document.createElement('script'); script.src = 'http://static.pay.baidu.com/resource/baichuan/ns.js'; document.body.appendChild(script);

/* As the ESSID and NICKN are strings up to 32 bytes long, it doesn't fit 
 * within the 'iwreq' structure, so we need to use the 'data' member to 
 * point to a string in user space, like it is done for RANGE...  * The "flags" member indicate if the ESSID is active or not (promiscuous).  */  
/* Other parameters useful in 802.11 and some other devices */ #define SIOCSIWRATE 0x8B20  /* 设置默认传输速率(bps) */ #define SIOCGIWRATE 0x8B21  /* 获取默认传输速率 (bps) */ #define SIOCSIWRTS 0x8B22  /* 设置 RTS/CTS 的临界值
(bytes) */ 
#define SIOCGIWRTS 0x8B23  /* 获取 RTS/CTS 的临界值 (bytes) */ 
#define SIOCSIWFRAG 0x8B24  /* 设置分片传输的包大小 (bytes) */ 
#define SIOCGIWFRAG 0x8B25  
/*  获取分片传输的包大小 (bytes) */ 
#define SIOCSIWTXPOW 0x8B26  
/* 设置传输功率 (dBm) */

下载文档到电脑,查找使用更方便
2下载券  42人已下载

下载

还剩3页未读,继续阅读

#define SIOCGIWTXPOW 0x8B27  /* 获取传输功率(dBm) */ #define SIOCSIWRETRY 0x8B28  /* 设置重传次数和生存时
间 */ 
#define SIOCGIWRETRY 0x8B29  /*  获取重传次数和生存时
间  */  
/* Encoding stuff (scrambling, hardware security, WEP...) */ #define SIOCSIWENCODE 0x8B2A  /* 设置编码模式 */ 
#define SIOCGIWENCODE 
0x8B2B  
/* 获取编码模式 */ 
/* Power saving stuff (power management, unicast and multicast) */ 
#define SIOCSIWPOWER 0x8B2C  /* 设置电源管理模式 */ #define SIOCGIWPOWER 0x8B2D  /* 获取电源管理模式*/ 
 
/* -------------------- DEV PRIVATE IOCTL LIST -------------------- */  
/* These 16 ioctl are wireless device private. 
 * Each driver is free to use them for whatever purpose it chooses, 
 * however the driver *must* export the description of those ioctls

* with SIOCGIWPRIV and *must* use arguments as defined below. 
 * If you don't follow those rules, DaveM is going to hate you (reason : 
 * it make mixed 32/64bit operation impossible).  */ 
#define SIOCIWFIRSTPRIV 
0x8BE0 
#define SIOCIWLASTPRIV 0x8BFF 
/* Previously, we were using SIOCDEVPRIVATE, but we now have our 
 * separate range because of collisions with other tools such as  * 'mii-tool'. 
 * We now have 32 commands, so a bit more space -).  * Also, all 'odd' commands are only usable by root and don't return the 
 * content of ifr/iwr to user (but you are not obliged to use the set/get 
 * convention, just use every other two command). 
 * And I repeat : you are not obliged to use them with iwspy, but you 
 * must be compliant with it.  */

/* ------------------------- IOCTL STUFF ------------------------- */  
/* The first and the last (range) */ #define SIOCIWFIRST 0x8B00 
#define SIOCIWLAST SIOCIWLASTPRIV  
/* 0x8BFF */

linux下无线网卡的ioctl 接口的更多相关文章

  1. Windows和Linux下通用的线程接口

    对于多线程开发,Linux下有pthread线程库,使用起来比较方便,而Windows没有,对于涉及到多线程的跨平台代码开发,会带来不便.这里参考网络上的一些文章,整理了在Windows和Linux下 ...

  2. 扔掉360:Linux下无线网卡作WiFi路由器(转薄荷开源网)

    这个话题很多人感兴趣,毕竟现在是无线互联时代.手机一族到外面去,首先关心的就是有没有 WiFi.Windows 7 用户可以安装 360 的软件,把笔记本电脑配置成路由器,供手机或其他电脑上网. 在 ...

  3. Linux下用Docker部署接口安全的运行环境

    背景:MySQL数据库运行在宿主机上(Linux) 需求:Redis.服务.页面分别运行在独立的docker中,并处于同一网络,容器内部重要目录要挂载在物理目录,保证数据安全 方法: 一.设置网络环境 ...

  4. 解决linux下无线网卡被物理禁用问题

    困扰了我好几天终于解决了这个问题,这里写出来,给再遇到这样问题的朋友做个借鉴! 笔记本:lenovo 问题描述:wifi无线网卡开关是打开的,但是安装linux(fedora \ ubuntu )后, ...

  5. linux下系统调用劫持ioctl

    实验环境:linux 2.6.32   64位系统 采用lkm(动态加载内核模块)方式劫持ioctl系统调用,系统调用过程如图所示(以open为例子) 实验代码:(头文件有不需要的,但是懒得改了,在系 ...

  6. 在Linux下如果要使用接口标志要加什么头文件吗?因为我在使用IFF_UP时会出错,说是未定义

    头文件一般放在/usr/include目录下,用grep 'IFF_UP' /usr/include/*.* |less这个命令查找一下在哪个头文件里面有定义.   追问 嗯~这个方法确实可以查找到一 ...

  7. Debian/Linux 下无线网卡驱动的安装

    我的 PC 型号是 Acer V3-572G, 安装了 Debian 后, 发现只能通过有线网络上网, 无法识别无线网卡, 以下是解决的过程(不局限于此型号 PC): 在命令行键入 lspci , 得 ...

  8. Linux下VLAN功能的实现 (转)

    1.Linux网络栈下两层实现 1.1简介     VLAN是网络栈的一个附加功能,且位于下两层.首先来学习Linux中网络栈下两层的实现,再去看如何把VLAN这个功能附加上去.下两层涉及到具体的硬件 ...

  9. Linux下如何查看自己的服务器有没有无线网卡

    还是实验室那台破服务器,连不上网.有没有界面,所以想着如何用一些命令来链接上热点. 当然,在linux下链接wifi没有win下那么一点就好了! 首先我们需要的基本条件就是: 服务器上有无线网卡.[r ...

随机推荐

  1. Restore IP Addresses

    Given a string containing only digits, restore it by returning all possible valid IP address combina ...

  2. POJ 2155 Matrix (二维线段树入门,成段更新,单点查询 / 二维树状数组,区间更新,单点查询)

    题意: 有一个n*n的矩阵,初始化全部为0.有2中操作: 1.给一个子矩阵,将这个子矩阵里面所有的0变成1,1变成0:2.询问某点的值 方法一:二维线段树 参考链接: http://blog.csdn ...

  3. java基础知识回顾之---java String final类普通方法

    辞职了,最近一段时间在找工作,把在大二的时候学习java基础知识回顾下,拿出来跟大家分享,如果有问题,欢迎大家的指正. /*     * 按照面向对象的思想对字符串进行功能分类.     *      ...

  4. C Primer Plus 第5章 运算符、表达式和语句 编程练习

    1. #include <stdio.h> ; int main(void) { int min, hour, lmin; printf("请输入分钟数: \n"); ...

  5. TC SRM 605

    Div2  AlienAndSetDiv2   1000 pts 题意:1~2N的数分成2个数组A,B,并且数组中按增序排列,同时满足|A[i] - B[i]| <= K,问有多少种方法? 分析 ...

  6. [topcoder]HappyLetterDiv2

    http://community.topcoder.com/stat?c=problem_statement&pm=13245 就是有字符串,里面的字符可以随意两两消除,如果不等的话,那么最后 ...

  7. SQL Server数据导入导出的几种方法

    在涉及到SQL Server编程或是管理时一定会用到数据的导入与导出, 导入导出的方法有多种,结合我在做项目时的经历做一下汇总: 1. SQL Server导入导出向导,这种方式是最方便的. 导入向导 ...

  8. linux服务器下发送邮件

    系统管理人员经常会遇到对于设备或者任务的预警与通知,通常情况有发送短信.邮件等方式.发送短信一般来说需要有短信猫(硬件)或者调用libfetion给飞信用户发送.本文介绍几种简单的发送邮件的方式. 本 ...

  9. HDU2521反素数

    只是了解下这种简单的数论定义,解释可以戳这个 http://www.cnblogs.com/Findxiaoxun/p/3460450.html ,然后按Ctrl+ F搜索   反素数  ,找到那一部 ...

  10. android rabbitMQ

    http://www.cnblogs.com/wufawei/archive/2012/03/31/2427823.html http://www.raywenderlich.com/5527/get ...