ubuntu 12.04 配置Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe无线网卡

03:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
    Subsystem: Hewlett-Packard Company Device 18ec
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 17
    Region 0: Memory at f7910000 (32-bit, non-prefetchable) [size=64K]
    Capabilities: [40] Power Management version 3
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+
    Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
        Address: 0000000000000000  Data: 0000
    Capabilities: [70] Express (v2) Endpoint, MSI 00
        DevCap:    MaxPayload 128 bytes, PhantFunc 0, Latency L0s <128ns, L1 <2us
            ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
        DevCtl:    Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta:    CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
        LnkCap:    Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
            ClockPM+ Surprise- LLActRep- BwNot-
        LnkCtl:    ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
            ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
        LnkSta:    Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        DevCap2: Completion Timeout: Not Supported, TimeoutDis+
        DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
        LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
             Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
             Compliance De-emphasis: -6dB
        LnkSta2: Current De-emphasis Level: -6dB
    Capabilities: [100 v1] Advanced Error Reporting
        UESta:    DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UEMsk:    DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UESvrt:    DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
        CESta:    RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
        CEMsk:    RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
        AERCap:    First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
    Capabilities: [140 v1] Device Serial Number 00-00-b1-d7-b6-30-35-54
    Kernel driver in use: rt2860

    Kernel modules: rt3290sta


git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git

Cloning into 'linux-firmware'...
fatal: unable to connect to git.kernel.org:
git.kernel.org[0: 198.145.20.140]: errno=Connection timed out
git.kernel.org[1: 199.204.44.194]: errno=Connection timed out
git.kernel.org[2: 149.20.4.72]: errno=Connection timed out
git.kernel.org[3: 2001:4f8:1:10:0:1991:8:25]: errno=Network is unreachable

改用

git clone http://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
Cloning into 'linux-firmware'...
remote: Counting objects: 2518, done.
remote: Compressing objects: 100% (1168/1168), done.
remote: Total 2518 (delta 1313), reused 2518 (delta 1313)
Receiving objects: 100% (2518/2518), 47.99 MiB | 157 KiB/s, done.
Resolving deltas: 100% (1313/1313), done.


sudo lshw -C network
  *-network               
       description: Network controller
       product: RT3290 Wireless 802.11n 1T/1R PCIe
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=rt2860 latency=0
       resources: irq:17 memory:f7910000-f791ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 0c
       serial: 0c:54:a5:56:9d:7d
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=N/A ip=10.2.48.200 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:48 ioport:d000(size=256) memory:f7800000-f7800fff memory:f2100000-f2103fff
  *-network
       description: Wireless interface
       physical id: 2
       logical name: ra0
       serial: 54:35:30:b6:d7:b1
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=RALINK WLAN ip=192.168.2.1 multicast=yes wireless=Ralink STA

sudo apt-get update && sudo apt-get install build-essential linux-headers-generic

Step 1
Download latest RT3290 driver source code from Ralink.
http://www.mediatek.com/en/downloads/

Step 2. Rename the file to 2012_0508_RT3290_Linux_STA_v2.6.0.0.tar.bz2 because Mediatek did a great job on making sure the file works correctly.

Step 3. Extract the file and it should create a folder named DPO_RT3290_LinuxSTA_V2600_20120508

Step 4. Go to DPO_RT3290_LinuxSTA_V2600_20120508/ and edit the file os/linux/config.mk

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n     change it to  HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Save and close the file.


Step 5. gedit common/cmm_wpa.c

Use the find command to locate "MIX_CIPHER_NOTUSE". Replace theentire line with this code:

WPA_MIX_PAIR_CIPHER FlexibleCipher =WPA_TKIPAES_WPA2_TKIPAES;

Save and close the file.


Step 6. stop old driver mod

make

sudo make install

sudo ifconfig wlan0down   (on somehardware it is ra0)


sudo rmmod rt2xxxsta


Step 7. start new driver

sudo modprobe rt3290sta

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值