资源简介
RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916
代码片段和文件信息
#include
#include
#include
#include
#include
#include
#include
//#include
//#include
#include
#include
#include /* gethostbyname getnetbyname */
#include
#include /* for “struct sockaddr“ et al */
#include /* struct timeval */
#include
#include
//#if LINUX_VERSION_CODE < KERNEL_VERSION(2627)
//#include
//#endif
#include /* struct ether_addr */
#include
#include
#include
#include
//#include “iwlib.h“
static void HWPBC_SignalHandler(int sig)
{
//if(sig==0x0a)
{
printf(“get HW_PBC signal from driver\n“);
//todo: execute the command below to start WPS PBC Method
//“./wpa_cli -p/var/run/wpa_supplicant wps_pbc any“
//pop UI/dialog to show starting WPS PBC - timeout = 120sec
}
}
/*------------------------------------------------------------------*/
/*
* Wrapper to push some Wireless Parameter in the driver
*/
static inline int
iw_set_ext(int skfd /* Socket to the kernel */
const char * ifname /* Device name */
int request_id /* WE ID */
struct iwreq * pwrq) /* Fixed part of the request */
{
/* Set device name */
strncpy(pwrq->ifr_name ifname IFNAMSIZ);
//strncpy(pwrq->ifr_ifrn.ifr_name ifname IFNAMSIZ);
/* Do the request */
return(ioctl(skfd request_id pwrq));
}
int main(int argc char** argv)
{
int pid;
struct iwreq wrq;
int devsock;
char ifrn_name[IFNAMSIZ]; /* if name e.g. “wlan0“ */
int cmd = SIOCIWFIRSTPRIV + 0x05;
int req[2];
printf(“for example\n“);
/*
if ((argc != 2) || (argv[1][0] == ‘-‘)) {
printf(“Usage: macaddr interface\n“);
exit(1);
}
*/
strncpy(ifrn_name “wlan0“ IFNAMSIZ);
devsock = socket(AF_INET SOCK_STREAM 0);
//devsock = socket(AF_INET SOCK_DGRAM 0);
if (devsock == -1) {
//perror(“Failed opening socket“);
printf(“failed opening socket\n“);
exit(1);
}
/*(1) set signal handler. */
signal(SIGUSR1 HWPBC_SignalHandler);
/*(2) Tell wifi driver our pid so that it can send a signal to us. */
pid = getpid();
printf(“my pid is %d\n“ pid);
req[0]=0; req[1]=pid;
memcpy(wrq.u.name req sizeof(int)*2);
if(iw_set_ext(devsock ifrn_name cmd &wrq) < 0)
{
printf(“failed iw_set_ext!\n“);
close(devsock);
exit(1);
}
while(1)
{
printf(“$> “);
while( getchar() != ‘\n‘)
{
}
}
close(devsock);
exit(0);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-09-17 14:30 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\
目录 0 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes\
文件 10936 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes\realtek_wifi_SDK_for_android.txt
文件 1213179 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes\realtek_wifi_SDK_for_android_20120618.tar.gz
目录 0 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes_ICS_nl80211\
文件 91832 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes_ICS_nl80211\Realtek_Wi-Fi_SDK_for_Android_ICS.pdf
文件 253610 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_reference_codes_ICS_nl80211\realtek_wifi_SDK_for_android_ICS_20120621.tar.gz
目录 0 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.1\
文件 2030 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.1\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 114780 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.1\Realtek_Wi-Fi_SDK_for_Android_JB_4_1.pdf
文件 38905 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.1\realtek_wifi_SDK_for_android_JB_4.1_20130306.tar.gz
目录 0 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.2\
文件 2030 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.2\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 119955 2013-09-17 14:27 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.2\Realtek_Wi-Fi_SDK_for_Android_JB_4_2.pdf
文件 17892 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\android_ref_codes_JB_4.2\realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz
目录 0 2013-09-17 14:30 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\
文件 41669 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\HowTo_enable_driver_to_support_80211d.pdf
文件 16309 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
文件 151839 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\HowTo_enable_the_power_saving_functionality.pdf
文件 15196 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\HowTo_support_more_VidPids.pdf
文件 4190 2013-09-17 14:26 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\linux_dhcp_server_notes.txt
文件 128555 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Miracast_for_Realtek_WiFi.pdf
文件 16136 2013-09-17 14:28 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Quick_Start_Guide_for_Bridge.pdf
文件 64223 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
文件 29459 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Quick_Start_Guide_for_SoftAP.pdf
文件 33653 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Quick_Start_Guide_for_Station_Mode.pdf
文件 167750 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Realtek_WiFi_concurrent_mode_Introduction.pdf
文件 127666 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\RTK_P2P_WFD_Programming_guide.pdf
文件 24949 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\SoftAP_Mode_features.pdf
文件 12206 2013-09-17 14:29 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\Wireless_tools_porting_guide.pdf
文件 38308 2013-09-17 14:30 RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916\document\wpa_cli_with_wpa_supplicant.pdf
............此处省略30个文件信息
相关资源
- Linux环境编程图文指南.林世霖(带书
- rhci-5.8-1.iso Linux系统安装引导
- yafeilinux教程-qt学习必备-PDF版
- 东北大学linux教学资料
- linux2.6.1内核源码注释
- Linux内核设计与实现_第三版_清晰中文
- USB2.0网卡驱动(windows mac linux)AX887
- eclipse-inst-linux32.tar.gz
-
嵌入式Linux基础教程em
bedded Linux pr - Linux内核设计的艺术:图解Linux操作系
- 学习Vi 和 Vim 编辑器中文版第7版
- 鸟哥的Linux私房菜第四版PDF
- GNS3使用手册win版+linux版
- Linus Torvalds:只是为了好玩——Linux
- 鸟哥的Linux私房菜+基础学习篇(第三
- 宫虎波 linux编程从入门到精通
- 基于QT的电子地图的设计与实现
- libxl 内含注册机 linux可用
- 嵌入式操作系统基础μCOS-2和Linux(第
- Linux设备驱动开发详解:基于最新的
- i 春秋月刊第六期:Linux pwn 零基础入
- zw_Linuxc从入门到精通.zip
- Linux内核2.4版源代码分析大全
- Install_TW6.1.5.8_Enterprise_Linux.bin
- Linux 内核最新稳定版linux-4.20.tar.xz
- Linux设备驱动开发详解:基于最新的
- 跟阿铭学linux第二版
- kali-linux学习书籍PDF版
- UNIX网络编程 卷1:套接字联网API第3版
- JetPack-L4T-2.3.1-linux-x64.run
评论
共有 条评论