Full Chi A20 ap6210 WiFi module porting 2

Source: Internet
Author: User

1. Compile the WiFi related function as module, generate Bcmdhd.ko, the module information of Bcmdhd.ko, this module depends on Cfg80211.ko and Rfkill.ko.

2. Write the script, boot automatically load WiFi module.

3. Use the command #ifconfig wlan0 up to turn on WiFi.

2 firmware is required to turn on WiFi: Fw_bcm40181a2.bin and Nvram_ap6210.txt (bcm43362 configuration file).

Automatically selects firmware fw_bcm40181a2.bin (defined in the firmware name program) based on the chip ID (ap6210 internal use bcm43362) program

The nvram_ap6210.txt is defined in. config, consistent with the final load name.

The firmware path, as defined in. config.

Config_bcmdhd_fw_path= "/etc/firmware/fw_bcmdhd.bin"//Red part is the firmware path, the blue part is not the final name, is the schematic name.
The config_bcmdhd_nvram_path= "/etc/firmware/nvram_bcmdhd.txt"//Red part is the firmware path, the blue part can be modified to represent the name of the final loaded firmware.

4. Using the command #iwlist wlan0 scan

Cell 14-address:80:13:82:cd:ba:1e
ESSID: "HW AP"
Mode:managed
frequency:2.452 GHz (Channel 9)
QUALITY:5/5 Signal level:-45 dbm Noise level:-92 dbm
Encryption Key:off
Bit rates:1 mb/s; 2 MB/s; 5.5 MB/s; MB/s; MB/s
MB/s; -MB/s; * MB/s; 6 MB/s; 9 MB/s
MB/s; MB/s

5. Use the command #iwconfig wlan0 Essid "HW AP" to connect to a WiFi hotspot that is not encrypted

6. Use the command #ifconfig wlan0 192.168.43.10 netmask 255.255.255.0 up to set the IP and subnet mask (the red part of the IP depends on the actual situation)

7. Using the command #route add default GW 192.168.43.1

8. Use the command #ifconfig wlan0 up restart

9. Use the command #ping 123.57.217.25 to test whether the network is pinging

10. Using the command #iwlist wlan0 scan

Cell 01-address:80:13:82:cd:ba:1e
ESSID: "HW AP"
Mode:managed
frequency:2.452 GHz (Channel 9)
QUALITY:5/5 Signal level:-37 dbm Noise level:-92 dbm
Ie:ieee 802.11I/WPA2 Version 1
Group cipher:ccmp
Pairwise ciphers (1): CCMP
Authentication Suites (1): PSK
Encryption Key:on
Bit rates:1 mb/s; 2 MB/s; 5.5 MB/s; MB/s; MB/s
MB/s; -MB/s; * MB/s; 6 MB/s; 9 MB/s
MB/s; MB/s

11. Use the command #iwconfig wlan0 Essid "Hwap" key 123456789 connected with an encrypted WiFi hotspot

Error for wireless Request "Set Encode" (8B2A):
SET failed on device wlan0; Invalid argument.

Iwconfig can only connect without password and web encryption
WPA is connected using the Wpa_supplicant tool.
Download NetworkManager to connect.

Full Chi A20 ap6210 WiFi module porting 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.