Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for 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
“);

//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
“);

/*
if ((argc != 2) || (argv[1][0] == ‘-‘)) {
printf(“Usage: macaddr interface
“);
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
“);
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
“ 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!
“);
    close(devsock);
exit(1);
   }  


while(1)
{
printf(“$> “);

while( getchar() != ‘
‘)
{

}

}

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&AndroidChip Info.txt
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driver
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverandroid_reference_codes
     文件       10936  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverandroid_reference_codes
ealtek_wifi_SDK_for_android.txt
     文件     1213179  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverandroid_reference_codes
ealtek_wifi_SDK_for_android_20120618.tar.gz
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverandroid_reference_codes_ICS_nl80211
     文件      253610  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverandroid_reference_codes_ICS_nl80211
ealtek_wifi_SDK_for_android_ICS_20120621.tar.gz
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverdocument
     文件       16309  2012-08-03 20:17  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentHowTo_enable_driver_to_support_WIFI_certification_test.pdf
     文件      151839  2012-08-03 20:17  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentHowTo_enable_the_power_saving_functionality.pdf
     文件       15196  2012-08-03 20:18  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentHowTo_support_more_VidPids.pdf
     文件        4190  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverdocumentlinux_dhcp_server_notes.txt
     文件       16136  2012-08-03 20:18  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentQuick_Start_Guide_for_Bridge.pdf
     文件       53282  2012-08-03 20:18  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentQuick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
     文件       17299  2012-08-03 20:18  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentQuick_Start_Guide_for_SoftAP.pdf
     文件       33653  2012-08-03 20:18  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentQuick_Start_Guide_for_Station_Mode.pdf
     文件       91606  2012-08-03 20:17  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentRealtek_Wi-Fi_SDK_for_Android_ICS.pdf
     文件      138182  2012-08-03 20:19  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentRTK_Wi-Fi_Direct_Programming_guide.pdf
     文件       26169  2012-08-03 20:19  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentRTL8192D_operation_mode.pdf
     文件       24949  2012-08-03 20:19  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentSoftAP_Mode_features.pdf
     文件       12206  2012-08-03 20:19  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android DriverdocumentWireless_tools_porting_guide.pdf
     文件       38308  2012-08-03 20:19  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverdocumentwpa_cli_with_wpa_supplicant.pdf
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverdriver
     文件     1262022  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverdriver
tl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803.tar.gz
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverhardware_wps_pbc
     文件        1782  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverhardware_wps_pbcReadme.txt
     文件        2796  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverhardware_wps_pbcsample.c
     文件        3106  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Driverinstall.sh
     目录           0  2014-05-26 15:13  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Drivermp_tools
     文件     1484956  2012-08-03 20:16  Realtek RTL8188CUS&RTL8188ETV 型芯片USB无线网卡驱动程序for Linux&AndroidLinux_Android Drivermp_tools
tl8188EUS_MP_linux_v4.1.1_4282.20120619.zip
............此处省略20个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)