资源简介
d-link 171 linux 驱动
DWA-171_RTL8811AU_Linux_v4.3.0_10674.20140321.zip
代码片段和文件信息
#include “p2p_test.h“
unsigned int wps_pin_checksum(unsigned int pin)
{
unsigned int accum = 0;
while( pin )
{
accum += pin % 10;
pin /= 10;
accum += 3 * (pin % 10);
pin /= 10;
}
return( accum % 10 );
}
char lower(char s)
{
if((‘A‘ <= s) && (s <= ‘Z‘))
return ( s = ‘a‘ + (s - ‘A‘) );
return s;
}
int p2p_check_success(struct p2p *p)
{
int ret = 0;
if( p->status == P2P_STATE_GONEGO_OK )
ret = 1;
return ret;
}
int read_all_sta(struct p2p *p)
{
int sta_count = 0;
FILE *pf;
memset( p->cmd 0x00 CMD_SZ );
sprintf( p->cmd “%s all_sta > supp_status.txt“ p->apcli_path);
system( p->cmd );
pf = fopen( “./supp_status.txt“ “r“ );
if ( pf )
{
while( !feof( pf ) ){
memset( p->parse 0x00 CMD_SZ );
fgets( p->parse CMD_SZ pf );
if( strncmp( p->parse “dot11RSNAStatsSTAAddress=“ 25) == 0 )
{
sta_count++;
if( p->no_sta_connected == sta_count )
return _TRUE;
}
}
fclose( pf );
}
return _FALSE;
}
void do_wps(struct p2p *p)
{
FILE *pf = NULL;
int ret = _FALSE parsing_ok = _FALSE;
do
{
memset( p->cmd 0x00 CMD_SZ );
if( p->ap_open == _TRUE )
{
if(p->wps_info==1 || p->wps_info==2)
sprintf( p->cmd “%s wps_pin any %d > supp_status.txt“ p->apcli_path p->pin);
else if(p->wps_info==3)
sprintf( p->cmd “%s wps_pbc any > supp_status.txt“ p->apcli_path);
}
else if(p->wpa_open == _TRUE)
{
if(p->connect_go==1)
{
if(p->wps_info==1 || p->wps_info==2)
sprintf( p->cmd “%s wps_pin %s %d > supp_status.txt “ p->wpacli_path p->peer_devaddr p->pin);
else if(p->wps_info==3)
sprintf( p->cmd “%s wps_pbc %s > supp_status.txt “ p->wpacli_path p->peer_devaddr);
}
else if( strncmp(p->peer_ifaddr “00:00:00:00:00:00“ 17)==0 )
{
if(p->wps_info==1 || p->wps_info==2)
sprintf( p->cmd “%s wps_pin any %d > supp_status.txt “ p->wpacli_path p->pin);
else if(p->wps_info==3)
sprintf( p->cmd “%s wps_pbc any > supp_status.txt “ p->wpacli_path);
}
else
{
if(p->wps_info==1 || p->wps_info==2)
sprintf( p->cmd “%s wps_pin %s %d > supp_status.txt “ p->wpacli_path p->peer_ifaddr p->pin);
else if(p->wps_info==3)
sprintf( p->cmd “%s wps_pbc %s > supp_status.txt “ p->wpacli_path p->peer_ifaddr);
}
}
system( p->cmd );
pf = fopen( “./supp_status.txt“ “r“ );
if ( pf )
{
while( !feof( pf ) ){
memset(p->parse 0x00 CMD_SZ);
fgets(p->parse CMD_SZ pf);
if(p->ap_open == _TRUE)
{
if( (p->wps_info==1 || p->wps_info==2) && (strncmp(p->parse ““ 2) == 0) )
parsing_ok = _TRUE;
else if( (p->wps_info==3) && (strncmp(p->parse “OK“ 2) == 0) )
parsing_ok = _TRUE;
}
else if(p->wpa_open == _TRUE)
{
if( (p->wps_info==1 || p->wps_info==2) && (strncmp(p->parse “Se
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-21 16:58 RTL8811AU_Linux_v4.3.0_10674.20140321\
目录 0 2014-03-21 17:05 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_JB_4.2\
文件 2030 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_JB_4.2\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 129466 2014-02-21 00:08 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_JB_4.2\Realtek_Wi-Fi_SDK_for_Android_JB_4_2.pdf
文件 17892 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_JB_4.2\realtek_wifi_SDK_for_android_JB_4.2_20130208.tar.gz
目录 0 2014-03-21 17:05 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_KK_4.4\
文件 2030 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_KK_4.4\linux-3.0.42_STATION_INFO_ASSOC_REQ_IES.diff
文件 142397 2014-02-21 00:08 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_KK_4.4\Realtek_Wi-Fi_SDK_for_Android_KK_4_4.pdf
文件 16390 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\android_ref_codes_KK_4.4\realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.gz
目录 0 2014-03-21 17:05 RTL8811AU_Linux_v4.3.0_10674.20140321\document\
文件 42974 2014-02-21 00:08 RTL8811AU_Linux_v4.3.0_10674.20140321\document\HowTo_enable_driver_to_support_80211d.pdf
文件 16929 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\HowTo_enable_driver_to_support_WIFI_certification_test.pdf
文件 154971 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\HowTo_enable_the_power_saving_functionality.pdf
文件 167936 2014-03-21 17:04 RTL8811AU_Linux_v4.3.0_10674.20140321\document\HowTo_read_external_TX_power_related_file.pdf
文件 15821 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\HowTo_support_more_VidPids.pdf
文件 4190 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\document\linux_dhcp_server_notes.txt
文件 128554 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Miracast_for_Realtek_WiFi.pdf
文件 16779 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Quick_Start_Guide_for_Bridge.pdf
文件 68773 2014-02-21 00:09 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Quick_Start_Guide_for_Driver_Compilation_and_Installation.pdf
文件 39476 2014-02-21 00:10 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Quick_Start_Guide_for_SoftAP.pdf
文件 36192 2014-02-21 00:10 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Quick_Start_Guide_for_Station_Mode.pdf
文件 61385 2014-02-21 00:13 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Quick_Start_Guide_for_WOW.pdf
文件 174071 2014-02-21 00:10 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Realtek_WiFi_concurrent_mode_Introduction.pdf
文件 128897 2014-02-21 00:10 RTL8811AU_Linux_v4.3.0_10674.20140321\document\RTK_P2P_WFD_Programming_guide.pdf
文件 29988 2014-02-21 00:11 RTL8811AU_Linux_v4.3.0_10674.20140321\document\SoftAP_Mode_features.pdf
文件 13447 2014-02-21 00:11 RTL8811AU_Linux_v4.3.0_10674.20140321\document\Wireless_tools_porting_guide.pdf
文件 41564 2014-02-21 00:11 RTL8811AU_Linux_v4.3.0_10674.20140321\document\wpa_cli_with_wpa_supplicant.pdf
目录 0 2014-03-21 16:44 RTL8811AU_Linux_v4.3.0_10674.20140321\driver\
文件 1838135 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\driver\rtl8811AU_linux_v4.3.0_10674.20140321.tar.gz
文件 6931 2014-03-21 16:42 RTL8811AU_Linux_v4.3.0_10674.20140321\readme.txt
文件 144384 2014-03-21 16:58 RTL8811AU_Linux_v4.3.0_10674.20140321\ReleaseNotes.pdf
............此处省略19个文件信息
相关资源
- The Linux Programming Interface 原版pdf by K
- synergy-v1.8.8-stable-linux & windows
- Linux+C编程一站式学习+最新版+pdf+网页
- linux 系统下安装IE必备的三个包wine
- Linux网络数据包抓取源码分析和包过滤
- NEOWAY有方MDM9607平台的N720模块驱动
- 《Linux C编程一站式学习》
- 基于嵌入式Linux的视频采集系统设计
- 鸟哥的Linux私房菜-基础学习篇(第四
- linux c 编程一站式学习高清文字带目录
- howlinuxworks.rar
- RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911
- 鸟哥的Linux私房菜_服务器架设篇(第
- LAMP兄弟连李明老师Linux讲义笔记PPT
- usb那些事的全集
- Linux_Shell脚本攻略.第3版.pdf
- 鸟哥的Linux私房菜-基础学习篇第四版
- arm架构下的boost库文件
- linux dhcpddhcp-4.2.5源代码
- 基于gtk的mp3播放器
- FTD3XXDriver_WHQLCertified_v1.3.0.2.zip
- UP-CUP6410-II实验指导书(LINUX)V2.0.pd
- linux的进程线程编程(高清书签版)
- apache-tomcat-8.0.46.tar.gz
- 嵌入式Linux应用程序开发详解教程含源
- linux升级openssh到7.8p版本包
- Linux Shell脚本攻略第3版pdf和源代码
- tomcat8linux
- scrt-7.1.3-378.rhel6-64.x86_64.rpm
- hi3798mv100-安卓-Linux双启动.zip
评论
共有 条评论