mt7601 Drive Use (ii)

Source: Internet
Author: User
Tags wpa supplicant
"Small"

Unexpectedly, after six months, and in the project used to drive the MT7601 network card, has been unaware of its performance is really good, just use it when compared to other network card drivers used to trouble.

and the documentation and use of the document feel is not in place, anyway this time use will be faster than the first use to solve the problem, record the process well.

Use driver for dpa_mt7601u_linuxsta_3.0.0.4_20130916.tgz, download address http://download.csdn.net/detail/diandianyangyi/6979117

"Drive Compilation"

Skip first, follow up

"Wrong One"

Halfway take over mt7601 network card debugging work, also do not know how many people before, the use is not very smooth.

Drive compile and load on, also identified the network card Wlan0 (why not RA0, slow will say), and then simply use the command to enable Leiling network card, have been rejected. [plain] view plain copy # ifconfig wlan0 up unlink cmd rsp urb ifconfig:SIOCSIFFLAGS:Operation not Permitte D


This problem occurs because there is no copy of the drive file RT2870STA.dat to the/etc/wireless/rt2870sta/rt2870sta.dat of the Development Board.

"Error Two"

Although an error has been corrected, it is still not available.

The error of this burst is as follows, the command is not supported.   [plain] view plain copy # wpa_supplicant-dwext-iwlan0-c/etc/wpa_supplicant.conf & # 0x1300 = 00064300 Ifconfig wtrying to associate with 20:dc:e6:e6:a5:24 (ssid= ' abc ' freq=2412 MHz) Ioctl[siocsiwgenie]: Operation not Suppo RTed Association request to the driver failed authentication and 20:dc:e6:e6:a5:24 out.

The search information is described below

WPA supplicant Don ' t works with Rt73 untill for you Patch WPA Sup itself
Must use the Iwpriv Commands
Search Iv Posted Them Many times!!!!
I Closed This one Just Search the Answer are here!!!

That is, you cannot use the Wpa_supplicant command to configure mt7601 unless a patch is made.

I looked at the Readme_sta_usb again and found myself missing.

3> in Os/linux/config.mk
Define the GCC and LD of the target machine
Define the compiler flags Cflags
Modify to meet your need.

* * Build for being controlled by NetworkManager or wpa_supplicant wext functions
Please set ' has_wpa_supplicant=y ' and ' has_native_wpa_supplicant_support=y '.
=> #>cd wpa_supplicant-x.x
=> #>./wpa_supplicant-dwext-ira0-c wpa_supplicant.conf-d
* * Build for being controlled by Wpasupplicant with Ralink Driver
Please set ' has_wpa_supplicant=y ' and ' has_native_wpa_supplicant_support=n '.
=> #>cd wpa_supplicant-0.5.7
=> #>./wpa_supplicant-dralink-ira0-c wpa_supplicant.conf-d

Here is a clear description of the support and use of wpa_supplicant, they have not previously configured.

Other

Modify the Ralink WiFi drive and rename ra0 to Wlan0

The position module\include\rtmp_def.h in the driver header file has the following definition [plain] view plain copy #ifdef android_support #define Inf_main_dev               _name "WLAN" #define INF_MBSSID_DEV_NAME "WLAN" #else #define Inf_main_dev_name "RA" #define Inf_mbssid_dev_name "RA"

According to this, it seems that as long as the configuration of Android_support this macro, the default for the WLAN network card.

Modify the Config.mk file in the driver directory, and change the following to Y. [plain] view plain copy #Support Android_support has_android_support=y

"Iwpriv Configuration"

The configuration section comes from the following two links.


http://blog.csdn.net/baggio1006/article/details/8838626

Http://blog.sina.com.cn/s/blog_b09739ab01016mif.html

In the driver code module/iwpriv_usage.txt inside also has the explanation, extracts the section.

a> Config STA to link and AP which is Open/none (authentication/encryption)
1. Iwpriv RA0 Set Networktype=infra
2. Iwpriv RA0 Set Authmode=open
3. Iwpriv RA0 Set Encryptype=none
4. Iwpriv ra0 set ssid= "AP ' s SSID"

b> Config STA to link and AP which is SHARED/WEP (authentication/encryption)
1. Iwpriv RA0 Set Networktype=infra
2. Iwpriv RA0 Set authmode=shared
3. Iwpriv RA0 Set Encryptype=wep
4. Iwpriv RA0 Set Defaultkeyid=1
5. Iwpriv ra0 set key1= "AP ' s WEP key"
6. Iwpriv ra0 set ssid= "AP ' s SSID"

c> Config STA to link and AP which is Wpapsk/tkip (authentication/encryption)
1. Iwpriv RA0 Set Networktype=infra
2. Iwpriv RA0 Set AUTHMODE=WPAPSK
3. Iwpriv RA0 Set Encryptype=tkip
4. Iwpriv ra0 set ssid= "AP ' s SSID"
5. Iwpriv ra0 set wpapsk= "AP ' s wpa-preshared key"
6. Iwpriv ra0 set ssid= "AP ' s SSID"

d> Config STA to link and AP which is Wpapsk/aes (authentication/encryption)
1. Iwpriv RA0 Set Networktype=infra
2. Iwpriv RA0 Set AUTHMODE=WPAPSK
3. Iwpriv RA0 Set Encryptype=aes
4. Iwpriv ra0 set ssid= "AP ' s SSID"
5. Iwpriv ra0 set wpapsk= "AP ' s wpa-preshared key"
6. Iwpriv ra0 set ssid= "AP ' s SSID"

e> Config STA to link and AP which is Wpa2psk/tkip (authentication/encryption)
 1. Iwpriv RA0 Set Networkty Pe=infra
 2. Iwpriv ra0 set AUTHMODE=WPA2PSK
 3. Iwpriv ra0 set Encryptype=tkip
 4. Iwpriv ra0 Set Ssid= "AP ' s SSID"
 5. Iwpriv ra0 set wpapsk=12345678
 6. Iwpriv RA0 Set ssid= "AP ' s SSID"
  f> Config STA to Create/link as Adhoc mode, which is Open/none (authentication/encryption)
 1. Iwpriv ra0 SE T Networktype=adhoc
 2. Iwpriv ra0 set Authmode=open
 3. Iwpriv ra0 set Encryptype=none
 4. IWP Riv ra0 set ssid= "Adhoc ' SSID"

g>  Config STA to Create/link as Adhoc mode, which is Wpanone/tkip (authentication/encryption)
     1. Iwpriv ra0 set Networktype=adhoc
 2. Iwpriv ra0 set Authmode=wpanone
 3. Iwpriv RA0 Set encryptype=tkip< br>  4. Iwpriv RA0 Set Ssid= "AP ' s SSID"
 5. Iwpriv ra0 set wpapsk=12345678
 6. Iwpriv RA0 Set ssid= "AP ' s SSID"

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.