linux下的无线网卡ioctl接口
request 参数为如下:
/* -------------------------- IOCTL LIST -------------------------- */
/* Basic operations */ #define SIOCSIWCOMMIT
0x8B00
/* 提交修改结果 */
#define SIOCGIWNAME 0x8B01 #define SIOCSIWNWID
0x8B02
/* 获取设备名字 */ /* 设置网络ID */ /* 获取网络ID */
#define SIOCGIWNWID 0x8B03 #define SIOCSIWFREQ 0x8B04 #define SIOCGIWFREQ
/* 设置信道(频率) */
/* 获取信道(频率) */ /* 设置网卡模式*/ /* 获取网卡模式 */
0x8B05
#define SIOCSIWMODE 0x8B06 #define SIOCGIWMODE 0x8B07 #define SIOCSIWSENS 0x8B08 #define SIOCGIWSENS 0x8B09
/* Informative stuff */
#define SIOCSIWRANGE 0x8B0A #define SIOCGIWRANGE 0x8B0B #define SIOCSIWPRIV 0x8B0C #define SIOCGIWPRIV 0x8B0D */
/* 设置灵敏度(dBm) */ /* 获取灵敏度 (dBm) */
/* Unused */ /* 获取参数范围 */
/* Unused */
/* 获取网卡特有的ioctl接口