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. DIY Ruby CPU 分析——Part I

    [编者按]原文作者 Emil Soman,Rubyist,除此之外竟然同时也是艺术家,吉他手,Garden City RubyConf 组织者.本文是DIY Ruby CPU Profiling 的第 ...

  2. Spring @ Component 的作用

    1.@controller 控制器(注入服务) 2.@service 服务(注入dao) 3.@repository dao(实现dao访问) 4.@component (把普通pojo实例化到spr ...

  3. POJ 1745

    #include <iostream> #define MAXN 10005 using namespace std; int _m[MAXN]; ]; int main() { //fr ...

  4. android 输入法的打开和关闭

    一.打开输入法窗口: InputMethodManager inputMethodManager = (InputMethodManager)  getSystemService(Context.IN ...

  5. Project Euler 87 :Prime power triples 素数幂三元组

    Prime power triples The smallest number expressible as the sum of a prime square, prime cube, and pr ...

  6. java 泛型类

     Java泛型中的标记符含义:  E - Element (在集合中使用,因为集合中存放的是元素) T - Type(Java 类) K - Key(键) V - Value(值) N - Numbe ...

  7. spring @bean注解

    1.@bean注解用于注册一个bean到 到ioc容器中.类似于@component注解 2.@configure注解,相当于指明这个类是配置文件 3.@bean还可以指定initMethod,des ...

  8. iOS KVO的原理

    KVO(Key Value Observing),是观察者模式在Foundation中的实现.   KVO的原理   简而言之就是:   1.当一个object有观察者时,动态创建这个object的类 ...

  9. JDBC学习总结(四)

    JDBC对LOB的读写 在JDBC中提供了java.sql.Blob和java.sql.Clob,两个类分别代表BLOB和CLOB数据.         · BLOB(Binary Large Obj ...

  10. UNIX 高手的 20 个习惯[转]

    使用 mkdir 的 -p 选项并在单个命令中创建所有父目录及其子目录要容易得多.但是即使对于知道此选项的管理员,他们在命令行上创建子目录时也仍然束缚于逐步创建每级子目录.花时间有意识地养成这个好习惯 ...