91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 24.19MB
    文件類型: .7z
    金幣: 2
    下載: 1 次
    發布日期: 2023-06-13
  • 語言: 其他
  • 標簽: ubuntu16.04??8822CE??

資源簡介

1. 下載8822CE驅動
選擇最新的那個下載.
2.解壓
3.進入解壓后的目錄,執行sudo sh install.sh
輸入密碼
4. 進入網絡管理可以見到無線網絡的選項了

資源截圖

代碼片段和文件信息


#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?//#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)?? ?{
printf(“failed?iw_set_ext!\n“);
? ? close(devsock);
exit(1);
? ?} ?


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

while(?getchar()?!=?‘\n‘)
{

}

}

close(devsock);

exit(0);

}


評論

共有 條評論