-
大小: 10.11MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-10-17
- 语言: Java
- 标签: RTL8188CUS RTL8188ETV 驱动程序 Linux Android
资源简介
Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android 内附详细说明文档。可用于嵌入式Linux android移植。
代码片段和文件信息
#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 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\
文件 29 2014-05-14 20:04 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Chip Info.txt
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\android_reference_codes\
文件 10936 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\android_reference_codes\realtek_wifi_SDK_for_android.txt
文件 1213179 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\android_reference_codes\realtek_wifi_SDK_for_android_20120618.tar.gz
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\android_reference_codes_ICS_nl80211\
文件 253610 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\android_reference_codes_ICS_nl80211\realtek_wifi_SDK_for_android_ICS_20120621.tar.gz
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\
文件 16309 2012-08-03 20:17 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
文件 151839 2012-08-03 20:17 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\HowTo_enable_the_power_saving_functionality.pdf
文件 15196 2012-08-03 20:18 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\HowTo_support_more_VidPids.pdf
文件 4190 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\linux_dhcp_server_notes.txt
文件 16136 2012-08-03 20:18 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Quick_Start_Guide_for_Bridge.pdf
文件 53282 2012-08-03 20:18 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
文件 17299 2012-08-03 20:18 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Quick_Start_Guide_for_SoftAP.pdf
文件 33653 2012-08-03 20:18 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Quick_Start_Guide_for_Station_Mode.pdf
文件 91606 2012-08-03 20:17 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Realtek_Wi-Fi_SDK_for_Android_ICS.pdf
文件 138182 2012-08-03 20:19 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\RTK_Wi-Fi_Direct_Programming_guide.pdf
文件 26169 2012-08-03 20:19 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\RTL8192D_operation_mode.pdf
文件 24949 2012-08-03 20:19 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\SoftAP_Mode_features.pdf
文件 12206 2012-08-03 20:19 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\Wireless_tools_porting_guide.pdf
文件 38308 2012-08-03 20:19 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\document\wpa_cli_with_wpa_supplicant.pdf
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\driver\
文件 1262022 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\driver\rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803.tar.gz
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\hardware_wps_pbc\
文件 1782 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\hardware_wps_pbc\Readme.txt
文件 2796 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\hardware_wps_pbc\sample.c
文件 3106 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\install.sh
目录 0 2014-05-26 15:13 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\mp_tools\
文件 1484956 2012-08-03 20:16 Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&Android\Linux_Android Driver\mp_tools\rtl8188EUS_MP_linux_v4.1.1_4282.20120619.zip
............此处省略20个文件信息
- 上一篇:Android猜歌游戏源代码
- 下一篇:android-openssl
相关资源
- SQLServer 2000的JDBC驱动程序
- PL2303-USB转串口驱动程序Android版本
- jtds-1.3.1.jar
- myaql5.0.8驱动程序jar包:mysql-connector
- 解决SQLSERVER数据库驱动程序无法通过
- Microsoft SQL Server 2005 JDBC Driver 1.2.rar
-
Oracle Databa
se 19c19.3JDBC驱动程序 o -
java for syba
se驱动程序jconn2.jar - orai18n.jar oracle 驱动程序javada转换
- MySql驱动程序包mysql-connector-java-5.0.5
- myeclipse连接mysql驱动程序和包
评论
共有 条评论