Giter Site home page Giter Site logo

egg_wifi's Introduction

RTL8723BS 同时使用 STA/AP 模式

编译驱动模块

修改 Makefile 如下部分

ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y)

EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN

SUBARCH := $(shell uname -m )

ARCH := $(SUBARCH)

CROSS_COMPILE :=

KSRC := /lib/modules/4.1.8-yocto-standard/build/

MODULE_NAME :=wlan

找到这几行,相应修改 ARCH , CROSS_COMPILE , KSRC 。 然后

$ make

编译得到 wlan.ko

加载驱动模块

# insmod wlan.ko

原来如果有请移除

输入 $ ip link

即可看到出现两个网口: wlan0 , wlan1 任意一个网口都可以做 station 模式,或 ap 模式

简单测试模块

开启 STATION 模式

# ip link set wlan0 up

# wpa_passphrase ssid_name wifi_passwd > wifi.conf

# wpa_supplicant -D wext -i wlan0 -c wifi.conf -B

# dhclient wlan0 (will take a while )

# ip addr wlan0 已经获取到 ip

同时开启 AP 模式

# ip link set wlan1 up

# ip a add 10.0.0.1/24 dev wlan1

# killall dnsmasq && cp egg_wifi/dnsmasq.conf /etc && dnsmasq

# ./hostapd egg_wifi/hostapd.conf &

使用给出的hostapd,配置文件可自行修改

将会放出 SSID 为 mark 的 wifi 热点,如果连接该热点无法获取 ip ,参看 linux_dhcp_server_notes.txt

egg_wifi's People

Contributors

rainmark avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.