资源简介
Realtek RTL8188 WIFI驱动程序for linux
代码片段和文件信息
#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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10168 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\android_reference_codes\realtek_wifi_SDK_for_android.txt
文件 1209179 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\android_reference_codes\realtek_wifi_SDK_for_android_20111103.tar.gz
文件 124507 2012-06-08 19:18 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\android_reference_codes_ICS_nl80211\Realtek_Wi-Fi_SDK_for_Android_ICS.pdf
文件 252090 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\android_reference_codes_ICS_nl80211\realtek_wifi_SDK_for_android_ICS_20120404.tar.gz
文件 18142 2012-06-08 19:20 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
文件 160988 2012-06-08 19:20 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\HowTo_enable_the_power_saving_functionality.pdf
文件 19848 2012-06-08 19:21 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\HowTo_support_more_VidPids.pdf
文件 4190 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\linux_dhcp_server_notes.txt
文件 20502 2012-06-08 19:21 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\Quick_Start_Guide_for_Bridge.pdf
文件 77980 2012-06-08 19:21 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
文件 33205 2012-06-08 19:22 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\Quick_Start_Guide_for_SoftAP.pdf
文件 48140 2012-06-08 19:22 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\Quick_Start_Guide_for_Station_Mode.pdf
文件 292670 2012-06-08 19:22 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\RTK_Wi-Fi_Direct_Programming_guide.pdf
文件 55578 2012-06-08 19:22 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\SoftAP_Mode_features.pdf
文件 26695 2012-06-08 19:23 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\Wireless_tools_porting_guide.pdf
文件 53349 2012-06-08 19:23 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\document\wpa_cli_with_wpa_supplicant.pdf
文件 1161100 2012-06-08 17:36 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\driver\rtl8188EUS_rtl8189ES_linux_v4.1.1_4235.20120606.tar.gz
文件 1782 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\hardware_wps_pbc\Readme.txt
文件 2796 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\hardware_wps_pbc\sample.c
文件 3106 2012-06-08 17:36 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\install.sh
文件 5437 2012-06-08 17:36 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\readme.txt
文件 37141 2012-06-08 19:25 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\ReleaseNotes.pdf
文件 272 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\Android.mk
文件 2807 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\install.sh
文件 29199 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\p2p_api_test_linux.c
文件 5159 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\p2p_test.h
文件 15641 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\p2p_ui_test_linux.c
文件 191337 2012-06-08 19:24 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\WiFi_Direct_User_Interface\Start_Guide_P2P_User_Interface_Linux.pdf
文件 335806 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\wireless_tools\wireless_tools.30.rtl.tar.gz
文件 1895 2012-06-08 17:35 RTL8188EUS_RTL8189ES_linux_v4.1.1_4235.20120606\wpa_supplicant_hostapd\p2p_hostapd.conf
............此处省略18个文件信息
- 上一篇:tomcat6.0的安装版
- 下一篇:龙渊 MTK DATA分区修改工具
相关资源
- rtl8188eu_USB_linux.tar.gz
- Realtek瑞昱 rtl8188cus linux驱动
- RTL8188E的Linux驱动源码+移植调试步骤记
- rtl8188eu驱动及工具arm开发板移植详细
- RTL8188EU andriod 驱动包
- RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.2013091
- RTL8188EUS_linux_v5.3.9_28540.20180806.7z
- RTL8188EUS_linux_v5.3.9_28540.20180806
- RTL8196EU_RTL8188ER无线路由器原理图
- rtl8188eu_linux无线网卡驱动
- rtl8188eus驱动
- rtl8188EUS_rtl8189ES定频软件
- rtl8188eu.deb
- RTL8192CU-RTL8188CUS-RTL8188CE在WinCE6下驱动
- Realtek_RTL8188EU for黑苹果10.10.5
- RTL8188代码修改为双接口 同时支持c
- RTL8188EUS RTL8188ETV定频软件
-
TP-li
nk TL-WN823N linux driverRTL8188C_8192 - rtl8188EUS_linux_v4.3.24 开源驱动
评论
共有 条评论