资源简介
RTL8188EU andriod driver
代码片段和文件信息
#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-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes\
文件 10936 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes\realtek_wifi_SDK_for_android.txt
文件 1213179 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes\realtek_wifi_SDK_for_android_20120618.tar.gz
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes_ICS_nl80211\
文件 100080 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes_ICS_nl80211\Realtek_Wi-Fi_SDK_for_Android_ICS.pdf
文件 253610 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_reference_codes_ICS_nl80211\realtek_wifi_SDK_for_android_ICS_20120621.tar.gz
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.1\
文件 2030 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.1\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 123738 2013-11-05 20:05 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.1\Realtek_Wi-Fi_SDK_for_Android_JB_4_1.pdf
文件 38905 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.1\realtek_wifi_SDK_for_android_JB_4.1_20130306.tar.gz
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.2\
文件 2030 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.2\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 129466 2013-11-05 20:05 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.2\Realtek_Wi-Fi_SDK_for_Android_JB_4_2.pdf
文件 17892 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.2\realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.3\
文件 2030 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.3\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 141557 2013-11-05 20:06 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.3\Realtek_Wi-Fi_SDK_for_Android_JB_4_3.pdf
文件 17190 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\android_ref_codes_JB_4.3\realtek_wifi_SDK_for_android_JB_4.3_20131011.tar.gz
目录 0 2013-11-05 20:14 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\
文件 42969 2013-11-05 20:06 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\HowTo_enable_driver_to_support_80211d.pdf
文件 16929 2013-11-05 20:06 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
文件 154971 2013-11-05 20:07 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\HowTo_enable_the_power_saving_functionality.pdf
文件 15821 2013-11-05 20:07 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\HowTo_support_more_VidPids.pdf
文件 4190 2013-11-05 20:04 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\linux_dhcp_server_notes.txt
文件 128554 2013-11-05 20:07 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Miracast_for_Realtek_WiFi.pdf
文件 16779 2013-11-05 20:08 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Quick_Start_Guide_for_Bridge.pdf
文件 68842 2013-11-05 20:08 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
文件 39476 2013-11-05 20:08 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Quick_Start_Guide_for_SoftAP.pdf
文件 36189 2013-11-05 20:08 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Quick_Start_Guide_for_Station_Mode.pdf
文件 174071 2013-11-05 20:08 RTL8188EUS_RTL8189ES_linux_v4.1.8_9499.20131104\document\Realtek_WiFi_concurrent_mode_Introduction.pdf
............此处省略33个文件信息
- 上一篇:S5P4418芯片手册
- 下一篇:车载导航源码
相关资源
- Handbook of Driver Assistance Systems
- RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.2013091
- rtl8723du WiFi驱动,移植SDK
- STM32 USB转串口驱动 Virtual COM Port Driv
- windriver X64,亲测可以在64bit的win7下使
-
Nu-li
nk_Keil_Driver_V2.04.6725 - STM32 USB转串口驱动 Virtual COM Port Driv
- andriod开发
- VxWorks程序员指南 WindRiver
- Xilinx_xdma_driver_win_2018_2
- JungoWinDriver10.21win32win64withcrack.rar
- RTL8188EUS_linux_v5.3.9_28540.20180806.7z
- RTL8188EUS_linux_v5.3.9_28540.20180806
- PCAN window driver
- Delphi xe6 andriod 编程入门教程 手机安卓
- VMware Drivers for Win95
- Andriod 移动应用基础教程PDF版
- NVIDIA-Linux-x86_64-418.56.runnvidia driver ,用
- WebDriver-387.10.10.10.40.105.pkg
- WebDriver-378.10.10.10.20.107
- Porto_Seguro’s_Safe_Driver_Prediction.zip
- DriverStudio3.2.1完全安装版
- ios 11.0-12.2驱动包
- realtek omnipeek driver
- DW_apb_i2c 驱动
- driver-hub
- KMDF Driver1.rar
- M57962-driver.pcb
- BALDOR MintDriver 系列驱动器产品说明书
- Inter(R) 82583V Gigabit ---driver
评论
共有 条评论