-
大小: 24.19MB文件类型: .7z金币: 2下载: 1 次发布日期: 2023-06-13
- 语言: 其他
- 标签: ubuntu16.04 8822CE
资源简介
1. 下载8822CE驱动
选择最新的那个下载.
2.解压
3.进入解压后的目录,执行sudo sh install.sh
输入密码
4. 进入网络管理可以见到无线网络的选项了
选择最新的那个下载.
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 < 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);
}
相关资源
- 周立功PCI CAN卡LINUX驱动ubuntu16.04内核
- zedboard ubuntu16.04文件系统
- Ubuntu16.04中配置Qt5.9.1和OpenCV3.4.0过程
- ubuntu16.04 64位版迅雷
- rtl8821ce linux版网卡驱动
- synergy Ubuntu16.04版和window10局域网下使
- Jetson-TX2手动安装CUDA和Cudnn.pdf
- m0_38048169_10123882.zip
- honeyd在ubuntu16.04安装包
- rtl8822 蓝牙驱动及移植资料
- TW8820_DataSheet
- Realtek网卡驱动rtl8821ce
- ubuntu16.04搭建FASTDFS图片服务器,并配
- DAC8822中文资料
- 4.12-4.15内核版本适用的rtl8821cu驱动,
- ASUSPRO P5440UA无线网卡:Realtek 8821CE W
- VTK-8.2.0.tar.gz
- 复旦大学半导体器件原理882真题含2
- ct图像重建系统178820
- 20newsgroup-18828.tar.gz
- rtl8822cs.rar
- RTL8822CE_WiFi_linux_v5.7.3_35403_COEX20190531
-
75882586Polyu_Pamprint_Databa
se(1).rar - 8822CS-202004201140202318cqbt.zip
- Ubuntu16.04下YOLO V3训练自己的数据集超
- cuda 8.0 ubuntu16.04 百度云链接
- 99c72f99d35d996ae6ea82ca1e882247.rar
- a64c788af5870029b402fa7a5882ccba.txt
- CUDA 9.0+cuDNN v7 for Ubuntu 16.04
- bluetooth_rtl8821cs_BT_hciattach_imx6.rar
评论
共有 条评论