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. MySQL 创建数据库并且指定编码

    GBK: create database test2 DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci; UTF8: CREATE DATABASE ` ...

  2. pycharm 基础教程

    pycharm 教程(一)安装和首次使用 PyCharm 是我用过的python编辑器中,比较顺手的一个.而且可以跨平台,在macos和windows下面都可以用,这点比较好. 首先预览一下 PyCh ...

  3. 如何在linux系统下对文件夹名有空格的文件夹进行操作

    http://www.2cto.com/os/201409/335119.html 在Windows操作系统中可以轻易地创建\移动\删除文件夹名带有空格的文件夹, 而在linux则需要进行一些特殊的处 ...

  4. 欧拉工程第65题:Convergents of e

    题目链接 现在做这个题目真是千万只草泥马在心中路过 这个与上面一题差不多 这个题目是求e的第100个分数表达式中分子的各位数之和 What is most surprising is that the ...

  5. 【mongoDB运维篇④】Shard 分片集群

    简述 为何要分片 减少单机请求数,降低单机负载,提高总负载 减少单机的存储空间,提高总存空间. 常见的mongodb sharding 服务器架构 要构建一个 MongoDB Sharding Clu ...

  6. eclipse配置jdk问题

    1.JDK安装成功,eclipse也安装成功,这时候实际上是可以不配置JDK,因为系统已经默认给你配置好了,

  7. 是谁决定了走redis缓存?当然是mybatis啊

    1.是谁决定了走redis缓存?当然是mybatis啊 mybatis里默认实现数据的增删改查功能,这里要用到缓存啊 而且是mybatis这种orm框架采用缓存机制的,mybatis默认都有两层缓存了 ...

  8. Android Studio安装、配置

    Google在2013年I/O大会上发布了Android Studio,AndroidStudio是一个基于IntelliJ IDEA的Android开发工具.这个IDE要比eclipse智能很多,具 ...

  9. Django admin site(三)InlineModelAdmin

    InlineModelAdmin class InlineModelAdminclass TabularInlineclass StackedInline 举例,有两个Model: from djan ...

  10. DefaultHashOperations multiget的一个坑

    DefaultHashOperations的multiget如果没有数据会返回java.util.Collections.EmptyList,这个List没有重写add方法. List<Long ...