Peppermint OS Community Forum

Support => Advanced Topics => Topic started by: cavy on February 24, 2017, 05:23:05 am

Title: RT2870STA wifi Driver
Post by: cavy on February 24, 2017, 05:23:05 am
Hi fellow pepperminters,

I have hit a brickwall with this driver install. Only MS instructions with packaging, Linux drivers were on mini CD. Extracted tar.bz and tried to read the 'makefile' and 'read-me' files, as clear as mud.

Came across this forum Q&A, during my research: http://linuxforums.org.uk/index.php?topic=852.15;PHPSESSID=f419mtmladgbe8nn2dcito7qt2 , even downloaded the drivers from page 2, treid them, as they had instructions.

Then tried cloned drivers from  GIT, but their instructions resulted in failure and numerous errors during make.

Enclose read-me and makefile, hopefully you will translate this for me and give me some pointers how to correctly read such documents. My head hurts...!

Also inxi -F, iwconfig, sudo lshw -C network, sudo iwlist scanning, lsmod

SPECS

Spoiler (click here to view / hide)
anthony@tower ~ $ inxi -F
System:    Host: tower Kernel: 4.4.0-64-generic x86_64 (64 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   Mobo: ASUSTeK model: B150I PRO GAMING/AURA v: Rev X.0x
           Bios: American Megatrends v: 0301 date: 01/13/2016
CPU:       Quad core Intel Core i7-6700 (-HT-MCP-) cache: 8192 KB
           clock speeds: max: 4000 MHz 1: 1590 MHz 2: 799 MHz 3: 799 MHz
           4: 799 MHz 5: 1097 MHz 6: 799 MHz 7: 956 MHz 8: 1211 MHz
Graphics:  Card: Intel Sky Lake Integrated Graphics
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2)
           GLX Version: 3.0 Mesa 12.0.6
Audio:     Card Intel Sunrise Point-H HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-64-generic
Network:   Card: Intel Ethernet Connection (2) I219-V driver: e1000e
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full
           mac: d0:17:c2:8a:4d:1b
Drives:    HDD Total Size: 250.1GB (7.4% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
Partition: ID-1: / size: 25G used: 4.2G (18%) fs: ext4 dev: /dev/sda2
           ID-2: /var size: 9.8G used: 1.1G (12%) fs: ext4 dev: /dev/sda3
           ID-3: /home size: 186G used: 4.8G (3%) fs: ext4 dev: /dev/sda4
           ID-4: swap-1 size: 8.39GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 229 Uptime: 40 min Memory: 862.1/15938.8MB
           Client: Shell (bash) inxi: 2.2.35
anthony@tower ~ $ iwconfig
lo        no wireless extensions.

enp0s31f6  no wireless extensions.

anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff
anthony@tower ~ $ sudo iwlist scanning
lo        Interface doesn't support scanning.

enp0s31f6  Interface doesn't support scanning.

anthony@tower ~ $ lsmod
Module                  Size  Used by
nls_utf8               16384  0
isofs                  40960  0
bnep                   20480  2
nls_iso8859_1          16384  1
snd_hda_codec_hdmi     53248  1
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
eeepc_wmi              16384  0
intel_powerclamp       16384  0
asus_wmi               28672  1 eeepc_wmi
sparse_keymap          16384  1 asus_wmi
coretemp               16384  0
snd_hda_intel          40960  2
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
kvm_intel             172032  0
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
kvm                   544768  1 kvm_intel
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
irqbypass              16384  1 kvm
snd_rawmidi            32768  1 snd_seq_midi
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
aesni_intel           167936  0
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
input_leds             16384  0
joydev                 20480  0
snd_timer              32768  2 snd_pcm,snd_seq
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper
snd                    81920  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore              16384  1 snd
serio_raw              16384  0
shpchp                 36864  0
mei_me                 36864  0
mei                    98304  1 mei_me
hci_uart               77824  0
btbcm                  16384  1 hci_uart
btqca                  16384  1 hci_uart
btintel                16384  1 hci_uart
bluetooth             520192  9 bnep,btbcm,btqca,hci_uart,btintel
intel_lpss_acpi        16384  0
intel_lpss             16384  1 intel_lpss_acpi
acpi_als               16384  0
kfifo_buf              16384  1 acpi_als
mac_hid                16384  0
acpi_pad               24576  0
industrialio           61440  2 acpi_als,kfifo_buf
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
nf_log_ipv6            16384  5
xt_hl                  16384  22
ip6t_rt                16384  3
nf_conntrack_ipv6      20480  8
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 16384  10
xt_limit               16384  13
xt_tcpudp              16384  18
xt_addrtype            16384  4
nf_conntrack_ipv4      16384  8
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 24576  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
nf_conntrack          106496  8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
parport_pc             32768  0
iptable_filter         16384  1
ip_tables              24576  1 iptable_filter
ppdev                  20480  0
x_tables               36864  13 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
btrfs                 987136  0
xor                    24576  1 btrfs
raid6_pq              102400  1 btrfs
hid_generic            16384  0
usbhid                 49152  0
mxm_wmi                16384  0
i915_bpo             1302528  5
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        155648  1 i915_bpo
syscopyarea            16384  1 drm_kms_helper
e1000e                237568  0
sysfillrect            16384  1 drm_kms_helper
psmouse               131072  0
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
ahci                   36864  5
ptp                    20480  1 e1000e
drm                   364544  6 i915_bpo,drm_kms_helper
pps_core               20480  1 ptp
libahci                32768  1 ahci
wmi                    20480  2 mxm_wmi,asus_wmi
i2c_hid                20480  0
pinctrl_sunrisepoint    28672  0
video                  40960  2 i915_bpo,asus_wmi
pinctrl_intel          20480  1 pinctrl_sunrisepoint
hid                   118784  3 i2c_hid,hid_generic,usbhid
fjes                   28672  0
[close]


THE DEVICE  "WOSUK Wifi Dongle 600Mbps Dual Band 2.4G/5G AC600 Wireless Usb Network Adapter Card Usb"

&
 
File MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2  3.4Mb
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 24, 2017, 05:25:23 am
As I maxed out: have TO post these spoilers separate

READ-ME

Spoiler (click here to view / hide)
* README
*
* Ralink Tech Inc.
*
* http://www.ralinktech.com
*

=======================================================================
ModelName:
===========
RT2870 Wireless Lan Linux Driver


=======================================================================
Driver lName:
===========
rt2870.o/rt2870.ko


=======================================================================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.


=======================================================================
Ralink Hardware:
===================
Ralink 802.11n Wireless LAN Card.


=======================================================================
Description:
=============
This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.


=======================================================================
Contents:
=============
Makefile           : Makefile
*.c               : c files
*.h               : header files


=======================================================================
Features:
==========
   This driver implements basic IEEE802.11. Infrastructure and adhoc mode with
   open or shared or WPA-PSK or WPA2-PSK authentication method.
   NONE, WEP, TKIP and AES encryption.


=======================================================================
Build Instructions: 
====================

1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
    go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.
   
2> In Makefile
    set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
    define the linux kernel source include file path LINUX_SRC
    modify to meet your need.

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

4> $make
   # compile driver source code
   # To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
     => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat
   
6> load driver, go to "os/linux/" directory.
    #[kernel 2.4]
    #    $/sbin/insmod rt2870sta.o
    #    $/sbin/ifconfig ra0 inet YOUR_IP up
       
    #[kernel 2.6]
    #    $/sbin/insmod rt2870sta.ko
    #    $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver   
    $/sbin/ifconfig ra0 down
   $/sbin/rmmod rt2870sta
   
=======================================================================
CONFIGURATION: 
====================
RT2870 driver can be configured via following interfaces,
i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file

i)  iwconfig comes with kernel. 
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)modify configuration file "RT2870STA.dat" in /etc/Wireless/RT2870STA/RT2870STA.dat.
           
Configuration File : RT2870STA.dat
---------------------------------------
# Copy this file to /etc/Wireless/RT2870STA/RT2870STA.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi RT2870STA.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
#
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
SSID=Dennis2860AP
NetworkType=Infra
WirelessMode=9
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
FastRoaming=0
RoamThreshold=70
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_AutoBA=1
HT_BADecline=0
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
EthConvertMode=
EthCloneMac=
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
MeshId=MESH
MeshAutoLink=1
MeshAuthMode=OPEN
MeshEncrypType=NONE
MeshWPAKEY=
MeshDefaultkey=1
MeshWEPKEY=
CarrierDetect=0

-----------------------------------------------
*NOTE:
   WMM parameters
         WmmCapable         Set it as 1 to turn on WMM Qos support            
         AckPolicy1~4      Ack policy which support normal Ack or no Ack
                        (AC_BK, AC_BE, AC_VI, AC_VO)      
   
   All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡Š¡Š,
   please store all parameter to RT2870STA.dat, and restart driver.    

-----------------------------------------------
syntax is 'Param'='Value' and describes below.

@> CountryRegion=value                                 
   value
      0: use 1 ~ 11 Channel
      1: use 1 ~ 13 Channel
      2: use 10 ~ 11 Channel
      3: use 10 ~ 13 Channel
      4: use 14 Channel
      5: use 1 ~ 14 Channel
      6: use 3 ~ 9 Channel
      7: use 5 ~ 13 Channel
      31: use 1 ~ 14 Channel (ch1-11:active scan, ch12-14 passive scan)
                                               
@> CountryRegionABand=value                           
   value   
      0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
      1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
      2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
      3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
      4: use 149, 153, 157, 161, 165 Channel
      5: use 149, 153, 157, 161 Channel
      6: use 36, 40, 44, 48 Channel
      7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
      8: use 52, 56, 60, 64 Channel
      9: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 Channel
      10: use 36, 40, 44, 48, 149, 153, 157, 161, 165 Channel
      11: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 Channel

@> CountryCode=value
   value
      AG, AR, AW, AU, AT, BS, BB, BM, BR, BE, BG, CA, KY, CL, CN, CO, CR, CY, CZ, DK, DO, EC, SV, FI, FR, DE,
      GR, GU, GT, HT, HN, HK, HU, IS, IN, ID, IE, IL, IT, JP, JO, LV, LI, LT, LU, MY, MT, MA, MX, NL, NZ, NO,
      PE, PT, PL, RO, RU, SA, CS, SG, SK, SI, ZA, KR, ES, SE, CH, TW, TR, GB, UA, AE, US, VE
      "" => using default setting: 2.4 G - ch 1~11; 5G - ch 52~64, 100~140, 149~165
                                                           
@> SSID=value                   
   value
      0~z, 1~32 ascii characters.
                       
@> WirelessMode=value
   value   
      0: legacy 11b/g mixed
      1: legacy 11B only
      2: legacy 11A only         //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
      3: legacy 11a/b/g mixed     //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
      4: legacy 11G only
      5: 11ABGN mixed
      6: 11N only
      7: 11GN mixed
      8: 11AN mixed
      9: 11BGN mixed
      10: 11AGN mixed   
                     
@> Channel=value
   value
      depends on CountryRegion or CountryRegionABand
                       
@> BGProtection=value
   value
      0: Auto
      1: Always on
      2: Always off
                       
@> TxPreamble=value
     value
      0:Preamble Long
      1:Preamble Short
      2:Auto
                       
@> RTSThreshold=value
   value
      1~2347                                                       
                                                              
@> FragThreshold=value
   value          
      256~2346
                       
@> TxBurst=value
   value
      0: Disable
      1: Enable

@> NetworkType=value             
   value
      Infra: infrastructure mode
          Adhoc: adhoc mode
                                                                                                                                                                                                                    
@> AuthMode=value
   value
      OPEN       For open system   
      SHARED        For shared key system   
      WEPAUTO     Auto switch between OPEN and SHARED
      WPAPSK      For WPA pre-shared key  (Infra)
      WPA2PSK     For WPA2 pre-shared key (Infra)
      WPANONE      For WPA pre-shared key  (Adhoc)
      WPA         Use WPA-Supplicant
      WPA2        Use WPA-Supplicant

@> EncrypType=value
   value
      NONE      For AuthMode=OPEN                   
      WEP         For AuthMode=OPEN or AuthMode=SHARED
      TKIP      For AuthMode=WPAPSK or WPA2PSK                   
      AES         For AuthMode=WPAPSK or WPA2PSK                     
      
@> DefaultKeyID=value
   value
      1~4

@> Key1=value
    Key2=value
    Key3=value
    Key4=value
   value
      10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
    (usage : "iwpriv" only)     

@> Key1Type=vaule
    Key2Type=value
    Key3Type=vaule
    Key4Type=vaule
    value
      0   hexadecimal type
      1   assic type
    (usage : reading profile only)

@> Key1Str=value
    Key2Str=value
    Key3Str=vaule
    Key4Str=vaule
    value
      10 or 26 characters (key type=0)
      5 or 13 characters  (key type=1)
    (usage : reading profile only)   

@> WPAPSK=value                 
   value
      8~63 ASCII        or
      64 HEX characters
                                                                                                                          
@> WmmCapable=value
   value
      0: Disable WMM
      1: Enable WMM
       
@> PSMode=value
    value
       CAM             Constantly Awake Mode
      Max_PSP          Max Power Savings
      Fast_PSP      Power Save Mode

@> FastRoaming=value
   value
      0            Disabled
      1            Enabled

@> RoamThreshold=value
   value
      Positive Interger(dBm)

@> HT_RDG=value
   value
      0            Disabled
      1            Enabled

@> HT_EXTCHA=value (Extended Channel Switch Announcement)
   value
      0            Below
      1             Above

@> HT_OpMode=value
   value
      0            HT mixed format
      1            HT greenfield format

@> HT_MpduDensity=value
   value (based on 802.11n D2.0)
      0: no restriction
      1: 1/4 £gs
      2: 1/2 £gs
      3: 1 £gs
      4: 2 £gs
      5: 4 £gs
      6: 8 £gs
      7: 16 £gs

@> HT_BW=value
   value
      0            20MHz
      1            40MHz

@> HT_AutoBA=value
   value
      0            Disabled
      1            Enabled

@> HT_BADecline
   value
      0            Disabled
      1             Enabled <Reject BA request from AP>

@> HT_AMSDU=value
   value
      0            Disabled
      1            Enabled

@> HT_BAWinSize=value
   value
      1 ~ 64

@> HT_GI=value
   value
      0            long GI
      1            short GI

@> HT_MCS=value
   value
      0 ~ 15
      33: auto

@> HT_MIMOPSMode=value
   value (based on 802.11n D2.0)
      0            Static SM Power Save Mode
      1            Dynamic SM Power Save Mode
      2            Reserved
      3            SM enabled
   (not fully support yet)

@> EthConvertMode=value
   value
      dongle
      clone
      hybrid

@> EthCloneMac=value
   value
      xx:xx:xx:xx:xx:xx

@> IEEE80211H=value
   value
      0            Disabled
      1            Enabled

@> TGnWifiTest=value
   value
      0            Disabled
      1            Enabled

@> WirelessEvent=value
   value
      0            Disabled
      1            Enabled <send custom wireless event>
      
@> MeshId=value
   value
      Length 1~32 ascii characters

@> MeshAutoLink=value
   value
      0            Disabled
      1            Enabled

@> MeshAuthMode=value
   value
      OPEN       For open system   
      WPANONE      For WPA pre-shared key  (Adhoc)

@> MeshEncrypType=value
   value
      NONE      For MeshAuthMode=OPEN                   
      WEP         For MeshAuthMode=OPEN
      TKIP      For MeshAuthMode=WPANONE
      AES         For MeshAuthMode=WPANONE

@> MeshWPAKEY=value
   value
      8~63 ASCII        or
      64 HEX characters

@> MeshDefaultkey=value
   value
      1~4

@> MeshWEPKEY=value
   value
      10 or 26 characters
      5 or 13 characters

@> CarrierDetect=value
   value
      0            Disabled
      1            Enabled

MORE INFORMATION
=================================================================================
If you want for rt2870 driver to auto-load at boot time:
A) choose ra0 for first RT2870 WLAN card, ra1 for second RT2870 WLAN card, etc.
   
B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,     
   edit( or add the line) in /etc/modules.conf:
       alias ra0 rt2870sta
   
C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0 
   DEVICE='ra0'
   ONBOOT='yes'     


NOTE:
   if you use dhcp, add this line too .
    BOOTPROTO='dhcp'

*D) To ease the Default Gateway setting,
    add the line
    GATEWAY=x.x.x.x   
    in /etc/sysconfig/network
   
=======================================================================
Dongle/Clone Features:
======================
A) Dongle mode:
      Provides a 1-to-N MAC address mapping mechanism such that more than one PC behind the STA
      can transparently connect to the AP.

B) Clone mode:
   Provides a 1-to-1 MAC address mapping mechanism.
   STA can use own MAC as SA MAC or
         use user desired MAC as SA MAC or
          use source MAC of first packet coming from wired device as SA MAC.
   NOTE: In this mode, only the PC who own the specified MAC can connect to the AP.

 
C) Hybrid mode(Dongle+Clone):
   Provides a 1-to-N MAC address mapping mechanism such that more than one PC behind the STA
      can transparently connect to the AP.
   STA can use own MAC as SA MAC or
         use user desired MAC as SA MAC or
          use source MAC of first packet coming from wired device as SA MAC.

D) Please refer to "Config STA to link as dongle mode..." in iwpriv_usage.txt for releated commands.
[close]


MAKEFILE

Spoiler (click here to view / hide)
ifeq ($(WIFI_MODE),)
RT28xx_MODE = STA
else
RT28xx_MODE = $(WIFI_MODE)
endif

ifeq ($(TARGET),)
TARGET = LINUX
endif

# CHIPSET
# rt2860, rt2870, rt2880, rt2070, rt3070, rt3090, rt3572, rt3062, rt3562, rt3593, rt3573
# rt3562(for rt3592), rt3050, rt3350, rt3352, rt5350, rt5370, rt5390, rt5572, rt5592,
# rt8592(for rt85592),
# mt7601e, mt7601u,
# mt7620,
# mt7650e, mt7630e, mt7610e, mt7650u, mt7630u, mt7610u
# mt7662e, mt7632e, mt7612e, mt7662u, mt7632u, mt7612u

ifeq ($(CHIPSET),)
CHIPSET = mt7662u mt7632u mt7612u
endif

MODULE = $(word 1, $(CHIPSET))

#OS ABL - YES or NO
OSABL = NO

ifneq ($(TARGET),THREADX)
#RT28xx_DIR = home directory of RT28xx source code
RT28xx_DIR = $(shell pwd)
endif

include $(RT28xx_DIR)/os/linux/config.mk

RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(MODULE)

#PLATFORM: Target platform
PLATFORM = PC
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
#PLATFORM = SIGMA
#PLATFORM = SIGMA_8622
#PLATFORM = INIC
#PLATFORM = STAR
#PLATFORM = IXP
#PLATFORM = INF_TWINPASS
#PLATFORM = INF_DANUBE
#PLATFORM = INF_AR9
#PLATFORM = INF_VR9
#PLATFORM = BRCM_6358
#PLATFORM = INF_AMAZON_SE
#PLATFORM = CAVM_OCTEON
#PLATFORM = CMPC
#PLATFORM = RALINK_2880
#PLATFORM = RALINK_3052
#PLATFORM = SMDK
#PLATFORM = RMI
#PLATFORM = RMI_64
#PLATFORM = KODAK_DC
#PLATFORM = DM6446
#PLATFORM = FREESCALE8377
#PLATFORM = BL2348
#PLATFORM = BL23570
#PLATFORM = BLUBB
#PLATFORM = BLPMP
#PLATFORM = MT85XX
#PLATFORM = NXP_TV550
#PLATFORM = MVL5
#PLATFORM = RALINK_3352
#PLATFORM = UBICOM_IPX8
#PLATFORM = INTELP6

#APSOC
ifeq ($(MODULE),3050)
PLATFORM = RALINK_3050
endif
ifeq ($(MODULE),3052)
PLATFORM = RALINK_3052
endif
ifeq ($(MODULE),3350)
PLATFORM = RALINK_3050
endif
ifeq ($(MODULE),3352)
PLATFORM = RALINK_3352
endif


#RELEASE Package
RELEASE = DPOA


ifeq ($(TARGET),LINUX)
MAKE = make
endif

ifeq ($(TARGET), UCOS)
MAKE = make
endif
ifeq ($(TARGET),THREADX)
MAKE = gmake
endif

ifeq ($(TARGET), ECOS)
MAKE = make
MODULE = $(shell pwd | sed "s/.*\///" ).o
export MODULE
endif

ifeq ($(PLATFORM),5VT)
LINUX_SRC = /home/ralink-2860-sdk-5vt-distribution/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
endif

ifeq ($(PLATFORM),UBICOM_IPX8)
LINUX_SRC = /home/sample/Customers/UBICOM/ubicom-linux-dist-2.1.1/linux-2.6.x
CROSS_COMPILE = ubicom32-elf-
endif

ifeq ($(PLATFORM),IKANOS_V160)
LINUX_SRC = /home/sample/projects/LX_2618_RG_5_3_00r4_SRC/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),IKANOS_V180)
LINUX_SRC = /home/sample/projects/LX_BSP_VX180_5_4_0r1_ALPHA_26DEC07/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),SIGMA)
LINUX_SRC = /root/sigma/smp86xx_kernel_source_2.7.172.0/linux-2.6.15
CROSS_COMPILE = /root/sigma/smp86xx_toolchain_2.7.172.0/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),SIGMA_8622)
LINUX_SRC = /home/snowpin/armutils_2.5.120.1/build_arm/linux-2.4.22-em86xx
CROSS_COMPILE = /home/snowpin/armutils_2.5.120.1/toolchain/bin/arm-elf-
CROSS_COMPILE_INCLUDE = /home/snowpin/armutils_2.5.120.1/toolchain/lib/gcc-lib/arm-elf/2.95.3
endif

ifeq ($(PLATFORM),INIC)
UCOS_SRC = /opt/uCOS/iNIC_rt2880
CROSS_COMPILE = /usr/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),STAR)
LINUX_SRC = /opt/star/kernel/linux-2.4.27-star
CROSS_COMPILE = /opt/star/tools/arm-linux/bin/arm-linux-
endif

ifeq ($(PLATFORM),RMI)
LINUX_SRC = /opt/rmi/1.7.0/linux/src/
CROSS_COMPILE = /opt/rmi/1.7.0/mipscross/nptl/bin/mips64-unknown-linux-gnu-
endif

ifeq ($(PLATFORM),RMI_64)
LINUX_SRC = /opt/rmi/1.7.0/linux_64/src/
CROSS_COMPILE = /opt/rmi/1.7.0/mipscross/nptl/bin/mips64-unknown-linux-gnu-
endif

ifeq ($(PLATFORM), RALINK_2880)
LINUX_SRC = /project/stable/RT288x/RT288x_SDK/source/linux-2.4.x
CROSS_COMPILE = /opt/buildroot-gdb/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),RALINK_3052)
LINUX_SRC = /home/peter/ap_soc/SDK_3_3_0_0/RT288x_SDK/source/linux-2.6.21.x
CROSS_COMPILE = /opt/buildroot-gcc342/bin/mipsel-linux-uclibc-
endif

ifeq ($(PLATFORM),FREESCALE8377)
LINUX_SRC = /opt/ltib-mpc8377_rds-20090309/rpm/BUILD/linux-2.6.25
CROSS_COMPILE = /opt/freescale/usr/local/gcc-4.2.187-eglibc-2.5.187/powerpc-linux-gnu/bin/powerpc-linux-gnu-
endif

ifeq ($(PLATFORM),BL2348)
LINUX_SRC = /home/sample/Customers/BroadLight/bl234x-linux-2.6.21-small-v29
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),BL23570)
LINUX_SRC = /home/FIBERHOME/linux-2.6.34.8
CROSS_COMPILE = mips-wrs-linux-gnu-mips_74k_softfp-glibc_small-
ARCH:=mips
export $ARCH
endif


ifeq ($(PLATFORM),BLUBB)
LINUX_SRC = /home/sample/Customers/BroadLight/UBB/gmp20/linux-2.6.21-small
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),BLPMP)
LINUX_SRC = /home/sample/Customers/BroadLight/UBB/pmp16/bl234x-linux-2.6.21-small-v30.2
CROSS_COMPILE = mips-wrs-linux-gnu-
endif

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),INTELP6)
LINUX_SRC = /tftpboot/IntelCE-20.0.11052.243193/project_build_i686/IntelCE/kernel-20.0.11024.238456/linux-2.6.35
CROSS_COMPILE = /tftpboot/IntelCE-20.0.11052.243193/build_i686/i686-linux-elf/bin/i686-cm-linux-
endif

ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux-2.6.x
CROSS_COMPILE = arm-linux-
endif

ifeq ($(PLATFORM),INF_TWINPASS)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /project/stable/twinpass/release/2.0.1/source/kernel/opensource/linux-2.4.31/
CROSS_COMPILE = mips-linux-
endif

ifeq ($(PLATFORM),INF_DANUBE)
LINUX_SRC = /opt/danube/sdk/linux-2.6.16.x
CROSS_COMPILE = mips-linux-
ROOTDIR = /opt/danube/sdk
export ROOTDIR
endif

ifeq ($(PLATFORM),INF_AR9)
LINUX_SRC = /root/ar9/xR9_BSP1.2.2.0/source/kernel/opensource/linux-2.6.20/
CROSS_COMPILE = /root/ar9/ifx-lxdb26-1.0.2/gcc-3.4.4/toolchain-mips/bin/
endif

ifeq ($(PLATFORM),INF_VR9)
LINUX_SRC = /home/public/lantiq/VR9/UGW-4.2/build_dir/linux-ifxcpe_platform_vr9/linux-2.6.20.19
CROSS_COMPILE = /home/public/lantiq/VR9/UGW-4.2/staging_dir/toolchain-mips_gcc-3.4.6_uClibc-0.9.29/bin/mips-linux-
endif

ifeq ($(PLATFORM),BRCM_6358)
LINUX_SRC =
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),INF_AMAZON_SE)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /backup/ifx/3.6.2.2/source/kernel/opensource/linux-2.4.31
#CROSS_COMPILE = mips-linux-
#LINUX_SRC = /project/Infineon/3.6.2.2/source/kernel/opensource/linux-2.4.31
CROSS_COMPILE = /opt/uclibc-toolchain/ifx-lxdb-1-2-3-external/gcc-3.3.6/toolchain-mips/R0208V35/mips-linux-uclibc/bin/
endif

ifeq ($(PLATFORM),ST)
LINUX_SRC = /opt/STM/STLinux-2.2/devkit/sources/kernel/linux0039
CROSS_COMPILE = /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-
ARCH := sh
export ARCH
endif

ifeq ($(PLATFORM),CAVM_OCTEON)
OCTEON_ROOT = /usr/local/Cavium_Networks/OCTEON-SDK
LINUX_SRC = $(OCTEON_ROOT)/linux/kernel_2.6/linux
CROSS_COMPILE = mips64-octeon-linux-gnu-
endif

ifeq ($(PLATFORM),CMPC)
LINUX_SRC = /opt/fvt_11N_SDK_0807/fvt131x_SDK_11n/linux-2.6.17
CROSS_COMPILE =
endif

ifeq ($(PLATFORM),SMDK)
LINUX_SRC = /home/bhushan/itcenter/may28/linux-2.6-samsung
CROSS_COMPILE = /usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-
endif

ifeq ($(PLATFORM),RALINK_3352)
LINUX_SRC = /home/sample/3352/RT288x_SDK/source/linux-2.6.21.x
CROSS_COMPILE = /opt/buildroot-gcc342/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),KODAK_DC)
SKD_SRC = C:/SigmaTel/DC1250_SDK_v1-9/sdk
CROSS_COMPILE = $(cc)
endif

ifeq ($(PLATFORM),DM6446)
LINUX_SRC = /home/fonchi/work/soc/ti-davinci
endif

ifeq ($(PLATFORM),MT85XX)
LINUX_SRC = /home/john/MTK/BDP_Linux/linux-2.6.27
CROSS_COMPILE = armv6z-mediatek-linux-gnueabi-
endif

ifeq ($(PLATFORM),NXP_TV550)
LINUX_SRC = /data/tv550/kernel/linux-2.6.28.9
LINUX_SRC_MODULE = /data/tv550/kernel/linux-2.6.28.9/drivers/net/wireless
CROSS_COMPILE = /opt/embeddedalley/nxp_tv550/bin/mipsel-linux-
endif

ifeq ($(PLATFORM),MVL5)
LINUX_SRC = /home2/charlestu/AP-VT3426/linux-2.6.18
CROSS_COMPILE = /opt/montavista/pro/devkit/arm/v5t_le_mvl5/bin/arm_v5t_le-
endif

export OSABL RT28xx_DIR RT28xx_MODE LINUX_SRC CROSS_COMPILE CROSS_COMPILE_INCLUDE PLATFORM RELEASE CHIPSET MODULE RTMP_SRC_DIR LINUX_SRC_MODULE TARGET HAS_WOW_SUPPORT

# The targets that may be used.
PHONY += all build_tools test UCOS THREADX LINUX release prerelease clean uninstall install libwapi osabl

ifeq ($(TARGET),LINUX)
all: build_tools $(TARGET)
else
all: $(TARGET)
endif



build_tools:
   $(MAKE) -C tools
   $(RT28xx_DIR)/tools/bin2h

test:
   $(MAKE) -C tools test

UCOS:
   $(MAKE) -C os/ucos/ MODE=$(RT28xx_MODE)
   echo $(RT28xx_MODE)

ECOS:
   $(MAKE) -C os/ecos/ MODE=$(RT28xx_MODE)
   cp -f os/ecos/$(MODULE) $(MODULE)

THREADX:
   $(MAKE) -C $(RT28xx_DIR)/os/Threadx -f $(RT28xx_DIR)/os/ThreadX/Makefile

LINUX:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))

ifeq ($(OSABL),YES)
   cp -f os/linux/Makefile.4.util $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
endif

   cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/

ifeq ($(OSABL),YES)
   cp -f os/linux/Makefile.4.netif $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
endif

ifeq ($(RT28xx_MODE),AP)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_ap.o /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)_ap.o /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)_ap.o /tftpboot
endif
ifeq ($(PLATFORM),INF_AMAZON_SE)
   cp -f /tftpboot/rt2870ap.o /backup/ifx/build/root_filesystem/lib/modules/2.4.31-Amazon_SE-3.6.2.2-R0416_Ralink/kernel/drivers/net
endif
else   
ifeq ($(RT28xx_MODE),APSTA)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_apsta.o /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)_apsta.o /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)_apsta.o /tftpboot
endif
else
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta.o /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/rtutil$(MODULE)_sta.o /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/rtnet$(MODULE)_sta.o /tftpboot
endif
endif   
endif   
else

ifeq ($(OSABL),YES)
   cp -f os/linux/Makefile.6.util $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

   cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
ifeq ($(PLATFORM),DM6446)
   $(MAKE)  ARCH=arm CROSS_COMPILE=arm_v5t_le- -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
else
ifeq ($(PLATFORM),FREESCALE8377)
   $(MAKE) ARCH=powerpc CROSS_COMPILE=$(CROSS_COMPILE) -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
else
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

ifeq ($(OSABL),YES)
   cp -f os/linux/Makefile.6.netif $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

ifeq ($(RT28xx_MODE),AP)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_ap.ko /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_ap_util.ko /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_ap_net.ko /tftpboot
endif
   rm -f os/linux/$(MODULE)_ap.ko.lzma
   /root/bin/lzma e os/linux/$(MODULE)_ap.ko os/linux/$(MODULE)_ap.ko.lzma
else   
ifeq ($(RT28xx_MODE),APSTA)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_apsta.ko /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_apsta_util.ko /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_apsta_net.ko /tftpboot
endif
else
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta.ko /tftpboot
ifeq ($(OSABL),YES)
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta_util.ko /tftpboot
   cp -f $(RT28xx_DIR)/os/linux/$(MODULE)_sta_net.ko /tftpboot
endif
endif
endif
endif


release: build_tools
   $(MAKE) -C $(RT28xx_DIR)/striptool -f Makefile.release clean
   $(MAKE) -C $(RT28xx_DIR)/striptool -f Makefile.release
   striptool/striptool.out
ifeq ($(RELEASE), DPO)
   gcc -o striptool/banner striptool/banner.c
   ./striptool/banner -b striptool/copyright.gpl -s DPO/ -d DPO_GPL -R
   ./striptool/banner -b striptool/copyright.frm -s DPO_GPL/include/firmware.h
endif

prerelease:
ifeq ($(MODULE), 2880)
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.release.2880 prerelease
else
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.release prerelease
endif
   cp $(RT28xx_DIR)/os/linux/Makefile.DPB $(RTMP_SRC_DIR)/os/linux/.
   cp $(RT28xx_DIR)/os/linux/Makefile.DPA $(RTMP_SRC_DIR)/os/linux/.
   cp $(RT28xx_DIR)/os/linux/Makefile.DPC $(RTMP_SRC_DIR)/os/linux/.
ifeq ($(RT28xx_MODE),STA)
   cp $(RT28xx_DIR)/os/linux/Makefile.DPD $(RTMP_SRC_DIR)/os/linux/.
   cp $(RT28xx_DIR)/os/linux/Makefile.DPO $(RTMP_SRC_DIR)/os/linux/.
endif   

clean:
ifeq ($(TARGET), LINUX)
   cp -f os/linux/Makefile.clean os/linux/Makefile
   $(MAKE) -C os/linux clean
   rm -rf os/linux/Makefile
endif   
ifeq ($(TARGET), UCOS)
   $(MAKE) -C os/ucos clean MODE=$(RT28xx_MODE)
endif
ifeq ($(TARGET), ECOS)
   $(MAKE) -C os/ecos clean MODE=$(RT28xx_MODE)
endif

uninstall:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.4 uninstall
else
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.6 uninstall
endif
endif

install:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.4 install
else
   $(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.6 install
endif
endif

libwapi:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   cp -f os/linux/Makefile.libwapi.4 $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
   cp -f os/linux/Makefile.libwapi.6 $(RT28xx_DIR)/os/linux/Makefile   
   $(MAKE) -C  $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules   
endif   

osutil:
ifeq ($(OSABL),YES)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   cp -f os/linux/Makefile.4.util $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
   cp -f os/linux/Makefile.6.util $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

osnet:
ifeq ($(OSABL),YES)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   cp -f os/linux/Makefile.4.netif $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
   cp -f os/linux/Makefile.6.netif $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif
endif

osdrv:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
   cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(RT28xx_DIR)/os/linux/
else
   cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
   $(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
endif

# Declare the contents of the .PHONY variable as phony.  We keep that information in a variable
.PHONY: $(PHONY)


[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 24, 2017, 07:32:58 am
Those instructions are very old...

What's the output from:
Code: [Select]
lsusb
and
Code: [Select]
sudo lshw -C network
and
Code: [Select]
rfkill list
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 06:36:22 am
G'Day mate  :D

lsusb

Code: [Select]
anthony@tower ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 10d5:000d Uni Class Technology Co., Ltd
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo lshw -C network

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff

rfkill list  (this didn't return anything?)

Code: [Select]
anthony@tower ~ $ 
anthony@tower ~ $ rfkill list
anthony@tower ~ $

 8)
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 06:44:16 am
With my old coal powered usb wifi dongle. That was plug and go, unlike the newer and allegedly better dual band thingie, lol...!   :-\

 sudo lshw -C network

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
  *-usb:1                 
       description: Wireless interface
       product: MT7601U Wireless Adapter
       vendor: Ralink Technology, Corp.
       physical id: 7
       bus info: usb@1:7
       logical name: wlx243c200b907e
       version: 0.00
       serial: 24:3c:20:0b:90:7e
       capabilities: usb-2.01 ethernet physical wireless
       configuration: broadcast=yes driver=mt7601u driverversion=4.4.0-64-generic firmware=N/A ip=192.168.0.14 link=yes maxpower=160mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11bgn
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 03:12:00 pm
Unplug the USB wifi adapter that isn't working .. wait 5 seconds .. replug the USB wifi adapter .. post the output from:
Code: [Select]
dmesg | tail -n 50
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 03:29:49 pm

dmesg | tail -n 50

Spoiler (click here to view / hide)
nthony@tower ~ $ dmesg | tail -n 50
[    2.889303] asus_wmi: BIOS WMI version: 0.9
[    2.889364] asus_wmi: SFUN value: 0x0
[    2.889652] input: Eee PC WMI hotkeys as /devices/platform/eeepc-wmi/input/input11
[    2.889745] asus_wmi: Number of fans: 1
[    2.896347] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915_bpo])
[    2.918309] snd_hda_codec_realtek hdaudioC0D0: ALC1150: SKU not ready 0x00000000
[    2.918815] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC1150: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[    2.918817] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.918818] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    2.918819] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    2.918820] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x1e/0x0
[    2.918820] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    2.918821] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[    2.918822] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[    2.918823] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[    2.934692] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
[    2.934728] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    2.934773] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    2.934800] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[    2.934826] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    2.934853] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    2.934879] input: HDA Intel PCH Line Out Side as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    2.934939] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    2.934995] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    3.106341] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    3.109825] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[    3.114834] systemd-journald[344]: Received request to flush runtime journal from PID 1
[    3.157859] audit: type=1400 audit(1488053371.949:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=847 comm="apparmor_parser"
[    3.158051] audit: type=1400 audit(1488053371.949:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=845 comm="apparmor_parser"
[    3.158896] audit: type=1400 audit(1488053371.949:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=846 comm="apparmor_parser"
[    3.158899] audit: type=1400 audit(1488053371.949:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=846 comm="apparmor_parser"
[    3.158902] audit: type=1400 audit(1488053371.949:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=846 comm="apparmor_parser"
[    3.159078] audit: type=1400 audit(1488053371.953:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=850 comm="apparmor_parser"
[    3.159399] audit: type=1400 audit(1488053371.953:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=842 comm="apparmor_parser"
[    3.159404] audit: type=1400 audit(1488053371.953:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=842 comm="apparmor_parser"
[    3.159408] audit: type=1400 audit(1488053371.953:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=842 comm="apparmor_parser"
[    4.714252] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[    4.919981] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[    8.075446] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[    8.075494] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s31f6: link becomes ready
[   13.272587] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[   13.486222] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.486227] Bluetooth: BNEP filters: protocol multicast
[   13.486233] Bluetooth: BNEP socket layer initialized
[  923.057095] usb 1-7: new high-speed USB device number 6 using xhci_hcd
[  923.200477] usb 1-7: New USB device found, idVendor=0e8d, idProduct=7610
[  923.200485] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  923.200489] usb 1-7: Product: WiFi
[  923.200493] usb 1-7: Manufacturer: MediaTek
[  923.200497] usb 1-7: SerialNumber: 1.0
[close]

PULL COUNT TO 5 AND REINSERT

Spoiler (click here to view / hide)
anthony@tower ~ $ dmesg | tail -n 50
[    2.918817] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.918818] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    2.918819] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    2.918820] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x1e/0x0
[    2.918820] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    2.918821] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[    2.918822] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[    2.918823] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[    2.934692] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12
[    2.934728] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    2.934773] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    2.934800] input: HDA Intel PCH Line Out Front as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[    2.934826] input: HDA Intel PCH Line Out Surround as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    2.934853] input: HDA Intel PCH Line Out CLFE as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    2.934879] input: HDA Intel PCH Line Out Side as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[    2.934939] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    2.934995] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    3.106341] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    3.109825] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[    3.114834] systemd-journald[344]: Received request to flush runtime journal from PID 1
[    3.157859] audit: type=1400 audit(1488053371.949:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=847 comm="apparmor_parser"
[    3.158051] audit: type=1400 audit(1488053371.949:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=845 comm="apparmor_parser"
[    3.158896] audit: type=1400 audit(1488053371.949:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=846 comm="apparmor_parser"
[    3.158899] audit: type=1400 audit(1488053371.949:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=846 comm="apparmor_parser"
[    3.158902] audit: type=1400 audit(1488053371.949:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=846 comm="apparmor_parser"
[    3.159078] audit: type=1400 audit(1488053371.953:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/tcpdump" pid=850 comm="apparmor_parser"
[    3.159399] audit: type=1400 audit(1488053371.953:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=842 comm="apparmor_parser"
[    3.159404] audit: type=1400 audit(1488053371.953:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=842 comm="apparmor_parser"
[    3.159408] audit: type=1400 audit(1488053371.953:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=842 comm="apparmor_parser"
[    4.714252] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[    4.919981] IPv6: ADDRCONF(NETDEV_UP): enp0s31f6: link is not ready
[    8.075446] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[    8.075494] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s31f6: link becomes ready
[   13.272587] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[   13.486222] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.486227] Bluetooth: BNEP filters: protocol multicast
[   13.486233] Bluetooth: BNEP socket layer initialized
[  923.057095] usb 1-7: new high-speed USB device number 6 using xhci_hcd
[  923.200477] usb 1-7: New USB device found, idVendor=0e8d, idProduct=7610
[  923.200485] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  923.200489] usb 1-7: Product: WiFi
[  923.200493] usb 1-7: Manufacturer: MediaTek
[  923.200497] usb 1-7: SerialNumber: 1.0
[  978.595227] usb 1-7: USB disconnect, device number 6
[  983.020803] usb 1-7: new high-speed USB device number 7 using xhci_hcd
[  983.164306] usb 1-7: New USB device found, idVendor=0e8d, idProduct=7610
[  983.164313] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  983.164318] usb 1-7: Product: WiFi
[  983.164322] usb 1-7: Manufacturer: MediaTek
[  983.164325] usb 1-7: SerialNumber: 1.0
anthony@tower ~ $
[close]

Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 03:43:49 pm
Okay you've confused the hell outa me with post #4 .. are these BOTH MT7601 adapters ?

Was the one you just replugged the one that doesn't work ?
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 04:16:18 pm
Sorry about that   ::)

Both are for the non-working device, before and after being pulled/replugged, which need the drivers from this MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 04:27:45 pm
With just the NON working dongle plugged in .. REBOOT

Once rebooted, post the output from:
Code: [Select]
lsusb
and
Code: [Select]
lsmod
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 04:35:45 pm
lsusb

Spoiler (click here to view / hide)
anthony@tower ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0e8d:7610 MediaTek Inc.
Bus 001 Device 006: ID 10d5:000d Uni Class Technology Co., Ltd
Bus 001 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
anthony@tower ~ $
[close]


lsmod

Spoiler (click here to view / hide)
anthony@tower ~ $ lsmod
Module                  Size  Used by
xfs                   970752  0
libcrc32c              16384  1 xfs
bnep                   20480  2
snd_hda_codec_hdmi     53248  1
nls_iso8859_1          16384  1
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
eeepc_wmi              16384  0
asus_wmi               28672  1 eeepc_wmi
sparse_keymap          16384  1 asus_wmi
snd_hda_intel          40960  2
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
intel_rapl             20480  0
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             172032  0
kvm                   544768  1 kvm_intel
irqbypass              16384  1 kvm
snd_seq_midi           16384  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
ghash_clmulni_intel    16384  0
joydev                 20480  0
snd_rawmidi            32768  1 snd_seq_midi
input_leds             16384  0
aesni_intel           167936  0
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
gf128mul               16384  1 lrw
snd_timer              32768  2 snd_pcm,snd_seq
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper
snd                    81920  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
serio_raw              16384  0
soundcore              16384  1 snd
shpchp                 36864  0
mei_me                 36864  0
mei                    98304  1 mei_me
hci_uart               77824  0
btbcm                  16384  1 hci_uart
btqca                  16384  1 hci_uart
btintel                16384  1 hci_uart
bluetooth             520192  9 bnep,btbcm,btqca,hci_uart,btintel
intel_lpss_acpi        16384  0
intel_lpss             16384  1 intel_lpss_acpi
mac_hid                16384  0
acpi_als               16384  0
kfifo_buf              16384  1 acpi_als
industrialio           61440  2 acpi_als,kfifo_buf
acpi_pad               24576  0
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
nf_log_ipv6            16384  5
xt_hl                  16384  22
ip6t_rt                16384  3
nf_conntrack_ipv6      20480  8
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 16384  10
xt_limit               16384  13
xt_tcpudp              16384  18
xt_addrtype            16384  4
nf_conntrack_ipv4      16384  8
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 24576  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
nf_conntrack          106496  8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter         16384  1
ip_tables              24576  1 iptable_filter
parport_pc             32768  0
x_tables               36864  13 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype,ip6t_REJECT
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
btrfs                 987136  0
xor                    24576  1 btrfs
raid6_pq              102400  1 btrfs
hid_generic            16384  0
usbhid                 49152  0
mxm_wmi                16384  0
i915_bpo             1302528  5
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        155648  1 i915_bpo
e1000e                237568  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
psmouse               131072  0
fb_sys_fops            16384  1 drm_kms_helper
ptp                    20480  1 e1000e
pps_core               20480  1 ptp
drm                   364544  6 i915_bpo,drm_kms_helper
ahci                   36864  5
libahci                32768  1 ahci
wmi                    20480  2 mxm_wmi,asus_wmi
video                  40960  2 i915_bpo,asus_wmi
i2c_hid                20480  0
pinctrl_sunrisepoint    28672  0
hid                   118784  3 i2c_hid,hid_generic,usbhid
pinctrl_intel          20480  1 pinctrl_sunrisepoint
fjes                   28672  0
anthony@tower ~ $
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 06:09:11 pm
Connect with an ethernet cable and run these commands in sequence:
Code: [Select]
cd ~/Desktop
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
then
Code: [Select]
tar xvf mt7610u-driver.tar.gz
then
Code: [Select]
cd ~/Desktop/mt7610u-driver
then
Code: [Select]
make
then
Code: [Select]
sudo make install
then
Code: [Select]
sudo depmod -a
then
Code: [Select]
sudo modprobe mt7610u
did wireless spring to life ?

If so, does it survive a reboot ?

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 06:38:51 pm
Okey Cokey m8  :o 

wow...........! I had a few this evening, and will do this tomorrow, that is some homework assignment.

So I had the wrong tar ball, like your "Linux in the UK forum" Q&A with Noobuntu back in 2011.

Cheers, I'll let you know how I got on some time tomorrow  :D
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 07:12:38 pm
The new adapter is an MT7610U .. the earlier one is an MT7601U .. they are differnt chips so require different drivers, and neither really want rt2870sta

I doubt the drivers from my posting on linuxforums.org.uk would still compile against the later 4.x kernels anyway.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 26, 2017, 06:43:09 am
Failed at sudo make install it gave this make: *** No rule to make target 'install'. Stop. as reason. Enclose full read out of terminal install.   :-\  Very similar to previous attempts   :(

Spoiler (click here to view / hide)
anthony@tower ~ $ cd ~/Desktop
anthony@tower ~/Desktop $ wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
--2017-02-26 11:29:12--  https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 162.125.64.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.64.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1350944 (1.3M) [application/octet-stream]
Saving to: ‘mt7610u-driver.tar.gz’

mt7610u-driver.tar. 100%[===================>]   1.29M  3.40MB/s    in 0.4s   

2017-02-26 11:29:13 (3.40 MB/s) - ‘mt7610u-driver.tar.gz’ saved [1350944/1350944]

anthony@tower ~/Desktop $ tar xvf mt7610u-driver.tar.gz
mt7610u-driver/doc/brftph_usage.txt
mt7610u-driver/include/video.h
mt7610u-driver/include/uapsd.h
mt7610u-driver/include/mcu/mrgtmp1
mt7610u-driver/include/mcu/mrgtmp0
mt7610u-driver/include/wpa.h
mt7610u-driver/conf/RT2860AP.dat
mt7610u-driver/conf/RT2860STA.dat
mt7610u-driver/phy/rtmp_phy.c
mt7610u-driver/common/cmm_cfg.c
mt7610u-driver/mcu/bin/MT7610_formal_2.4.bin
mt7610u-driver/sta/rtmp_ckipmic.c
mt7610u-driver/include/oid.h
mt7610u-driver/include/mac_ral/nmac/
mt7610u-driver/include/rtmp_cmd.h
mt7610u-driver/os/linux/cfg80211drv.c
mt7610u-driver/rate_ctrl/
mt7610u-driver/include/crypt_md5.h
mt7610u-driver/include/wpa_cmm.h
mt7610u-driver/include/iface/rtmp_reg_pcirbs.h
mt7610u-driver/include/rtmp.h
mt7610u-driver/common/cmm_profile.c
mt7610u-driver/sta/sta_iwsc.c
mt7610u-driver/include/vrut_ubm.h
mt7610u-driver/mgmt/mgmt_hw.c
mt7610u-driver/README_STA_usb
mt7610u-driver/include/vht.h
mt7610u-driver/mac/ral_nmac.c
mt7610u-driver/conf/RT2870STACard.dat
mt7610u-driver/include/spectrum.h
mt7610u-driver/phy/rlt_rf.c
mt7610u-driver/include/ap.h
mt7610u-driver/os/linux/rt_symb.c
mt7610u-driver/rate_ctrl/alg_legacy.c
mt7610u-driver/include/spectrum_def.h
mt7610u-driver/mcu/bin/MT7610_beta0.3.bin
mt7610u-driver/RT2870STA.dat
mt7610u-driver/conf/SingleSKU.dat
mt7610u-driver/include/chip/rt65xx.h
mt7610u-driver/conf/
mt7610u-driver/common/vht.c
mt7610u-driver/common/misc.c
mt7610u-driver/include/cfg80211extr.h
mt7610u-driver/doc/README_STA_usb
mt7610u-driver/firmware/mt7610u.bin
mt7610u-driver/hw_ctrl/coex.c
mt7610u-driver/include/chip/
mt7610u-driver/common/rt_rf.c
mt7610u-driver/rate_ctrl/alg_ags.c
mt7610u-driver/include/mcu/mcu.h
mt7610u-driver/common/client_wds.c
mt7610u-driver/os/linux/inf_ppa.c
mt7610u-driver/include/mcu/mcu_and.h
mt7610u-driver/common/cmm_radar.c
mt7610u-driver/os/linux/usb_main_dev.c
mt7610u-driver/include/rt_led.h
mt7610u-driver/include/frame_hdr.h
mt7610u-driver/os/linux/vr_bdlt.c
mt7610u-driver/firmware/mt7650u.bin
mt7610u-driver/mcu/bin/MT7610_formal_2.6.bin
mt7610u-driver/mcu/bin/MT7610_beta0.4.bin
mt7610u-driver/include/phy/
mt7610u-driver/common/cmm_cmd.c
mt7610u-driver/os/linux/x
mt7610u-driver/conf/RT2860AP.dat_ac
mt7610u-driver/include/drs_extr.h
mt7610u-driver/include/action.h
mt7610u-driver/include/dot11ac_vht.h
mt7610u-driver/conf/RT2860STACard.dat
mt7610u-driver/include/rtmp_type.h
mt7610u-driver/include/mlme.h
mt7610u-driver/include/iface/
mt7610u-driver/os/linux/rt_rbus_pci_drv.c
mt7610u-driver/mcu/
mt7610u-driver/mcu/mcu_and.c
mt7610u-driver/common/ba_action.c
mt7610u-driver/include/mac_ral/nmac/ral_nmac_usb.h
mt7610u-driver/common/rt_channel.c
mt7610u-driver/mgmt/
mt7610u-driver/include/rtmp_chip.h
mt7610u-driver/include/rtmp_timer.h
mt7610u-driver/os/linux/Kconfig.ap.usb
mt7610u-driver/include/os/rt_os.h
mt7610u-driver/common/crypt_hmac.c
mt7610u-driver/common/cmm_wep.c
mt7610u-driver/common/crypt_aes.c
mt7610u-driver/include/rt_os_net.h
mt7610u-driver/include/crypt_sha2.h
mt7610u-driver/include/os/
mt7610u-driver/mgmt/mgmt_dev.c
mt7610u-driver/common/cmm_asic.c
mt7610u-driver/include/eeprom.h
mt7610u-driver/include/crypt_hmac.h
mt7610u-driver/mgmt/mgmt_entrytb.c
mt7610u-driver/sta/tdls_uapsd.c
mt7610u-driver/sta/sta_cfg.c
mt7610u-driver/common/cmm_mac_usb.c
mt7610u-driver/include/rtmp_iface.h
mt7610u-driver/conf/RT2870STA.dat
mt7610u-driver/sta/sanity.c
mt7610u-driver/common/cmm_data_usb.c
mt7610u-driver/sta/
mt7610u-driver/conf/RT2860APCard.dat
mt7610u-driver/common/cmm_cs.c
mt7610u-driver/phy/rlt_phy.c
mt7610u-driver/chips/mt76x0.c
mt7610u-driver/RT2870STACard.dat
mt7610u-driver/common/cmm_info.c
mt7610u-driver/include/os/rt_linux_cmm.h
mt7610u-driver/doc/README
mt7610u-driver/doc/sta_ate_iwpriv_usage.txt
mt7610u-driver/include/chip/rtmp_phy.h
mt7610u-driver/doc/VxWorks.README
mt7610u-driver/include/mac_ral/fce.h
mt7610u-driver/include/ap_diversity.h
mt7610u-driver/hw_ctrl/greenap.c
mt7610u-driver/os/linux/rt_usb_util.c
mt7610u-driver/mac/
mt7610u-driver/include/sta_cfg.h
mt7610u-driver/sta/connect.c
mt7610u-driver/common/cmm_dfs.c
mt7610u-driver/sta/rtmp_data.c
mt7610u-driver/sta/auth_rsp.c
mt7610u-driver/conf/RT2870APCard.dat
mt7610u-driver/include/chip/chip_id.h
mt7610u-driver/include/mac_ral/nmac/ral_nmac_pci.h
mt7610u-driver/os/linux/br_ftph.c
mt7610u-driver/include/cs.h
mt7610u-driver/mcu/bin/MT7610_formal_1.7.bin
mt7610u-driver/include/mac_ral/nmac/ral_nmac_pbf.h
mt7610u-driver/mgmt/mgmt_ht.c
mt7610u-driver/include/chlist.h
mt7610u-driver/include/rt_os_util.h
mt7610u-driver/phy/
mt7610u-driver/mgmt/mgmt_vht.c
mt7610u-driver/include/chip/mt76x0.h
mt7610u-driver/mac/rtmp_mac.c
mt7610u-driver/common/action.c
mt7610u-driver/conf/RT2870AP.dat
mt7610u-driver/include/radar.h
mt7610u-driver/include/dot11i_wpa.h
mt7610u-driver/chips/
mt7610u-driver/rate_ctrl/alg_grp.c
mt7610u-driver/os/linux/rt_usb.c
mt7610u-driver/mcu/bin/
mt7610u-driver/sta/sync.c
mt7610u-driver/sta/assoc.c
mt7610u-driver/doc/ate_iwpriv_usage.txt
mt7610u-driver/doc/mbss_phy.readme
mt7610u-driver/common/rtmp_timer.c
mt7610u-driver/common/rtusb_io.c
mt7610u-driver/chips/rtmp_chip.c
mt7610u-driver/include/phy/rlt_phy.h
mt7610u-driver/Makefile
mt7610u-driver/common/crypt_sha2.c
mt7610u-driver/doc/History_sta_pci.txt
mt7610u-driver/include/rtmp_dot11.h
mt7610u-driver/include/misc_cmm.h
mt7610u-driver/include/wfd.h
mt7610u-driver/os/linux/
mt7610u-driver/include/misc.h
mt7610u-driver/include/iface/iface_util.h
mt7610u-driver/doc/History_sta_usb.txt
mt7610u-driver/include/mac_ral/nmac/ral_nmac.h
mt7610u-driver/common/uapsd.c
mt7610u-driver/README.md
mt7610u-driver/include/crypt_aes.h
mt7610u-driver/firmware/
mt7610u-driver/doc/RT_WIFI_Revision_History_2010_April.xls
mt7610u-driver/common/cmm_video.c
mt7610u-driver/common/ps.c
mt7610u-driver/common/txpower.c
mt7610u-driver/rate_ctrl/ra_ctrl.c
mt7610u-driver/include/wfd_cmm.h
mt7610u-driver/sta/auth.c
mt7610u-driver/common/scan.c
mt7610u-driver/include/mac_ral/rf_ctrl.h
mt7610u-driver/mcu/bin/MT7610_formal_1.9.bin
mt7610u-driver/include/rtmp_osabl.h
mt7610u-driver/include/rtmp_def.h
mt7610u-driver/sta/wpa.c
mt7610u-driver/.gitignore
mt7610u-driver/os/linux/rt_main_dev.c
mt7610u-driver/include/dfs.h
mt7610u-driver/doc/History.txt
mt7610u-driver/chips/rt65xx.c
mt7610u-driver/common/crypt_md5.c
mt7610u-driver/include/mlme_sys.h
mt7610u-driver/common/wfd.c
mt7610u-driver/include/cfg80211.h
mt7610u-driver/include/rtmp_os.h
mt7610u-driver/common/rtmp_init.c
mt7610u-driver/include/mac_ral/
mt7610u-driver/
mt7610u-driver/os/linux/cat
mt7610u-driver/common/cmm_sync.c
mt7610u-driver/common/cmm_data.c
mt7610u-driver/common/cmm_wpa.c
mt7610u-driver/include/client_wds_cmm.h
mt7610u-driver/sta/dls.c
mt7610u-driver/common/cmm_aes.c
mt7610u-driver/common/frq_cal.c
mt7610u-driver/os/linux/cfg80211.c
mt7610u-driver/doc/
mt7610u-driver/common/cmm_tkip.c
mt7610u-driver/include/mac_ral/rtmp_mac.h
mt7610u-driver/common/rt_os_util.c
mt7610u-driver/doc/FirmwareHistory.txt
mt7610u-driver/common/mlme.c
mt7610u-driver/include/rtusb_io.h
mt7610u-driver/common/rt_led.c
mt7610u-driver/mcu/bin/MT7610_formal_1.0.bin
mt7610u-driver/include/mac_ral/mac_usb.h
mt7610u-driver/sta/tdls_chswitch_mng.c
mt7610u-driver/common/cmm_sanity.c
mt7610u-driver/doc/iwpriv_usage.txt
mt7610u-driver/os/linux/Kconfig.ap.soc
mt7610u-driver/os/linux/rt_profile.c
mt7610u-driver/include/link_list.h
mt7610u-driver/include/mac_ral/pbf.h
mt7610u-driver/os/linux/MacDump.txt
mt7610u-driver/include/frq_cal.h
mt7610u-driver/doc/wps_iwpriv_usage.txt
mt7610u-driver/os/
mt7610u-driver/os/linux/Kconfig.sta.soc
mt7610u-driver/include/iface/rtmp_usb.h
mt7610u-driver/os/linux/rt_linux.c
mt7610u-driver/doc/RT2860card.readme
mt7610u-driver/iwpriv_usage.txt
mt7610u-driver/sta_ate_iwpriv_usage.txt
mt7610u-driver/common/spectrum.c
mt7610u-driver/mcu/mcu.c
mt7610u-driver/doc/README_STA_pci
mt7610u-driver/common/crypt_arc4.c
mt7610u-driver/include/crypt_arc4.h
mt7610u-driver/include/wsc.h
mt7610u-driver/include/rt_config.h
mt7610u-driver/include/br_ftph.h
mt7610u-driver/include/
mt7610u-driver/include/client_wds.h
mt7610u-driver/common/
mt7610u-driver/hw_ctrl/
mt7610u-driver/os/linux/sta_ioctl.c
mt7610u-driver/common/rtusb_bulk.c
mt7610u-driver/include/rtmp_comm.h
mt7610u-driver/common/rtusb_data.c
mt7610u-driver/include/mcu/
mt7610u-driver/common/rtmp_init_inf.c
mt7610u-driver/include/os/rt_linux.h
anthony@tower ~/Desktop $ cd ~/Desktop/mt7610u-driver
anthony@tower ~/Desktop/mt7610u-driver $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-64-generic/build M=/home/anthony/Desktop/mt7610u-driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-64-generic'
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_profile.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/assoc.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/auth.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/auth_rsp.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sync.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sanity.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/rtmp_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/connect.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/wpa.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sta_cfg.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_vht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/vht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_md5.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_sha2.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_hmac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_aes.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_arc4.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/mlme.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_wep.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/action.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_init.o
/home/anthony/Desktop/mt7610u-driver/common/rtmp_init.c: In function ‘NICInitializeAsic.part.0’:
/home/anthony/Desktop/mt7610u-driver/common/rtmp_init.c:1168:1: warning: the frame size of 2040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_init_inf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_tkip.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_aes.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_sync.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_sanity.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_info.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_cfg.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_wpa.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_radar.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/spectrum.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_timer.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_channel.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_profile.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_asic.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/scan.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_cmd.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/uapsd.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/ps.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/ra_ctrl.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_legacy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_ags.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/rtmp_chip.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/txpower.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mac/rtmp_mac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_hw.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_entrytb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rtmp_phy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rlt_phy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rlt_rf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.o
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c: In function ‘StaQuickResponeForRateUpExecAdapt’:
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c:1064:38: warning: comparison of constant ‘2’ with boolean expression is always false [-Wbool-compare]
   else if (pAd->CommonCfg.TrainUpRule==2 && Rssi<=pAd->CommonCfg.TrainUpRuleRSS
                                      ^
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c:1068:38: warning: comparison of constant ‘3’ with boolean expression is always false [-Wbool-compare]
   else if (pAd->CommonCfg.TrainUpRule==3 && Rssi<=pAd->CommonCfg.TrainUpRuleRSS
                                      ^
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/ba_action.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_ht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_os_util.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/sta_ioctl.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_linux.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_main_dev.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_led.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/cfg80211.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/cfg80211drv.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_mac_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_data_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_io.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_bulk.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_rf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/rt65xx.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/mt76x0.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mac/ral_nmac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mcu/mcu.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mcu/mcu_and.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_usb_util.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/usb_main_dev.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/frq_cal.o
  LD [M]  /home/anthony/Desktop/mt7610u-driver/mt7610u.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/anthony/Desktop/mt7610u-driver/mt7610u.mod.o
  LD [M]  /home/anthony/Desktop/mt7610u-driver/mt7610u.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-64-generic'
anthony@tower ~/Desktop/mt7610u-driver $ sudo make install
[sudo] password for anthony:
make: *** No rule to make target 'install'. Stop.
anthony@tower ~/Desktop/mt7610u-driver $
]
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 26, 2017, 05:00:12 pm
Okay I've fixed the makefile to include an "install" rule .. so let's get rid of the old copy:
Code: [Select]
cd ~/Desktop
then
Code: [Select]
rm mt7610u-driver.tar.gz
then
Code: [Select]
rm -r mt7610u-driver



And now let's try again...

Connect with an ethernet cable and run these commands in sequence:
Code: [Select]
cd ~/Desktop
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
then
Code: [Select]
tar xvf mt7610u-driver.tar.gz
then
Code: [Select]
cd ~/Desktop/mt7610u-driver
then
Code: [Select]
make
then
Code: [Select]
sudo make install
then
Code: [Select]
sudo modprobe mt7610u
did wireless spring to life ?

If so, does it survive a reboot ?

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 04:37:32 am
Good morning  :)

It made it past the sudo make install, produced nothing for the sudo modprobe mt7610u, previously was FATAL.  8)  After reboot the wifi network, then became available with usual addresses, not before...?   :-\

When I inserted usb aerial and enter my wifi-password it did attempt to seek wifi signal, more of a tease than anything.  :-\  As our American buddies say, close, but no cigar lol.  :P


Spoiler (click here to view / hide)
anthony@tower ~ $ cd ~/Desktop
anthony@tower ~/Desktop $ wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
--2017-02-27 00:16:44--  https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 162.125.64.6
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|162.125.64.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1350450 (1.3M) [application/octet-stream]
Saving to: ‘mt7610u-driver.tar.gz’

mt7610u-driver.tar. 100%[===================>]   1.29M  3.35MB/s    in 0.4s   

2017-02-27 00:16:45 (3.35 MB/s) - ‘mt7610u-driver.tar.gz’ saved [1350450/1350450]

anthony@tower ~/Desktop $ tar xvf mt7610u-driver.tar.gz
mt7610u-driver/include/mcu/mrgtmp1
mt7610u-driver/include/mcu/mrgtmp0
mt7610u-driver/include/uapsd.h
mt7610u-driver/doc/brftph_usage.txt
mt7610u-driver/include/video.h
mt7610u-driver/include/wpa.h
mt7610u-driver/conf/RT2860AP.dat
mt7610u-driver/conf/RT2860STA.dat
mt7610u-driver/phy/rtmp_phy.c
mt7610u-driver/common/cmm_cfg.c
mt7610u-driver/mcu/bin/MT7610_formal_2.4.bin
mt7610u-driver/sta/rtmp_ckipmic.c
mt7610u-driver/include/oid.h
mt7610u-driver/include/mac_ral/nmac/
mt7610u-driver/include/rtmp_cmd.h
mt7610u-driver/os/linux/cfg80211drv.c
mt7610u-driver/rate_ctrl/
mt7610u-driver/include/crypt_md5.h
mt7610u-driver/include/wpa_cmm.h
mt7610u-driver/include/iface/rtmp_reg_pcirbs.h
mt7610u-driver/include/rtmp.h
mt7610u-driver/common/cmm_profile.c
mt7610u-driver/sta/sta_iwsc.c
mt7610u-driver/include/vrut_ubm.h
mt7610u-driver/mgmt/mgmt_hw.c
mt7610u-driver/include/vht.h
mt7610u-driver/README_STA_usb
mt7610u-driver/mac/ral_nmac.c
mt7610u-driver/conf/RT2870STACard.dat
mt7610u-driver/include/spectrum.h
mt7610u-driver/phy/rlt_rf.c
mt7610u-driver/include/ap.h
mt7610u-driver/os/linux/rt_symb.c
mt7610u-driver/rate_ctrl/alg_legacy.c
mt7610u-driver/include/spectrum_def.h
mt7610u-driver/mcu/bin/MT7610_beta0.3.bin
mt7610u-driver/RT2870STA.dat
mt7610u-driver/conf/SingleSKU.dat
mt7610u-driver/include/chip/rt65xx.h
mt7610u-driver/include/mcu/mcu.h
mt7610u-driver/conf/
mt7610u-driver/common/misc.c
mt7610u-driver/include/cfg80211extr.h
mt7610u-driver/doc/README_STA_usb
mt7610u-driver/firmware/mt7610u.bin
mt7610u-driver/hw_ctrl/coex.c
mt7610u-driver/common/rt_rf.c
mt7610u-driver/include/chip/
mt7610u-driver/rate_ctrl/alg_ags.c
mt7610u-driver/common/vht.c
mt7610u-driver/mcu/bin/MT7610_beta0.4.bin
mt7610u-driver/os/linux/inf_ppa.c
mt7610u-driver/include/mcu/mcu_and.h
mt7610u-driver/common/cmm_radar.c
mt7610u-driver/os/linux/usb_main_dev.c
mt7610u-driver/include/rt_led.h
mt7610u-driver/include/frame_hdr.h
mt7610u-driver/os/linux/vr_bdlt.c
mt7610u-driver/firmware/mt7650u.bin
mt7610u-driver/common/client_wds.c
mt7610u-driver/include/phy/
mt7610u-driver/mcu/bin/MT7610_formal_2.6.bin
mt7610u-driver/common/cmm_cmd.c
mt7610u-driver/os/linux/x
mt7610u-driver/conf/RT2860AP.dat_ac
mt7610u-driver/include/drs_extr.h
mt7610u-driver/include/action.h
mt7610u-driver/include/dot11ac_vht.h
mt7610u-driver/conf/RT2860STACard.dat
mt7610u-driver/include/rtmp_type.h
mt7610u-driver/include/mlme.h
mt7610u-driver/include/iface/
mt7610u-driver/os/linux/rt_rbus_pci_drv.c
mt7610u-driver/mcu/
mt7610u-driver/mcu/mcu_and.c
mt7610u-driver/common/ba_action.c
mt7610u-driver/include/mac_ral/nmac/ral_nmac_usb.h
mt7610u-driver/common/rt_channel.c
mt7610u-driver/mgmt/
mt7610u-driver/include/rtmp_chip.h
mt7610u-driver/include/rtmp_timer.h
mt7610u-driver/os/linux/Kconfig.ap.usb
mt7610u-driver/include/os/rt_os.h
mt7610u-driver/common/crypt_hmac.c
mt7610u-driver/common/cmm_wep.c
mt7610u-driver/common/crypt_aes.c
mt7610u-driver/include/rt_os_net.h
mt7610u-driver/include/crypt_sha2.h
mt7610u-driver/include/os/
mt7610u-driver/mgmt/mgmt_dev.c
mt7610u-driver/common/cmm_asic.c
mt7610u-driver/include/eeprom.h
mt7610u-driver/include/crypt_hmac.h
mt7610u-driver/mgmt/mgmt_entrytb.c
mt7610u-driver/sta/tdls_uapsd.c
mt7610u-driver/sta/sta_cfg.c
mt7610u-driver/common/cmm_mac_usb.c
mt7610u-driver/include/rtmp_iface.h
mt7610u-driver/conf/RT2870STA.dat
mt7610u-driver/sta/sanity.c
mt7610u-driver/common/cmm_data_usb.c
mt7610u-driver/sta/
mt7610u-driver/conf/RT2860APCard.dat
mt7610u-driver/common/cmm_cs.c
mt7610u-driver/phy/rlt_phy.c
mt7610u-driver/chips/mt76x0.c
mt7610u-driver/RT2870STACard.dat
mt7610u-driver/common/cmm_info.c
mt7610u-driver/include/os/rt_linux_cmm.h
mt7610u-driver/doc/README
mt7610u-driver/doc/sta_ate_iwpriv_usage.txt
mt7610u-driver/include/chip/rtmp_phy.h
mt7610u-driver/doc/VxWorks.README
mt7610u-driver/include/mac_ral/fce.h
mt7610u-driver/include/ap_diversity.h
mt7610u-driver/hw_ctrl/greenap.c
mt7610u-driver/os/linux/rt_usb_util.c
mt7610u-driver/mac/
mt7610u-driver/include/sta_cfg.h
mt7610u-driver/sta/connect.c
mt7610u-driver/common/cmm_dfs.c
mt7610u-driver/sta/rtmp_data.c
mt7610u-driver/sta/auth_rsp.c
mt7610u-driver/conf/RT2870APCard.dat
mt7610u-driver/include/chip/chip_id.h
mt7610u-driver/include/mac_ral/nmac/ral_nmac_pci.h
mt7610u-driver/os/linux/br_ftph.c
mt7610u-driver/include/cs.h
mt7610u-driver/mcu/bin/MT7610_formal_1.7.bin
mt7610u-driver/include/mac_ral/nmac/ral_nmac_pbf.h
mt7610u-driver/mgmt/mgmt_ht.c
mt7610u-driver/include/chlist.h
mt7610u-driver/include/rt_os_util.h
mt7610u-driver/phy/
mt7610u-driver/mgmt/mgmt_vht.c
mt7610u-driver/mac/rtmp_mac.c
mt7610u-driver/common/action.c
mt7610u-driver/conf/RT2870AP.dat
mt7610u-driver/include/chip/mt76x0.h
mt7610u-driver/include/radar.h
mt7610u-driver/include/dot11i_wpa.h
mt7610u-driver/chips/
mt7610u-driver/rate_ctrl/alg_grp.c
mt7610u-driver/os/linux/rt_usb.c
mt7610u-driver/mcu/bin/
mt7610u-driver/sta/sync.c
mt7610u-driver/sta/assoc.c
mt7610u-driver/doc/ate_iwpriv_usage.txt
mt7610u-driver/doc/mbss_phy.readme
mt7610u-driver/common/rtmp_timer.c
mt7610u-driver/common/rtusb_io.c
mt7610u-driver/chips/rtmp_chip.c
mt7610u-driver/include/phy/rlt_phy.h
mt7610u-driver/Makefile
mt7610u-driver/common/crypt_sha2.c
mt7610u-driver/doc/History_sta_pci.txt
mt7610u-driver/include/rtmp_dot11.h
mt7610u-driver/include/misc_cmm.h
mt7610u-driver/include/wfd.h
mt7610u-driver/os/linux/
mt7610u-driver/include/misc.h
mt7610u-driver/include/iface/iface_util.h
mt7610u-driver/doc/History_sta_usb.txt
mt7610u-driver/include/mac_ral/nmac/ral_nmac.h
mt7610u-driver/common/uapsd.c
mt7610u-driver/README.md
mt7610u-driver/include/crypt_aes.h
mt7610u-driver/firmware/
mt7610u-driver/doc/RT_WIFI_Revision_History_2010_April.xls
mt7610u-driver/common/cmm_video.c
mt7610u-driver/common/ps.c
mt7610u-driver/common/txpower.c
mt7610u-driver/rate_ctrl/ra_ctrl.c
mt7610u-driver/include/wfd_cmm.h
mt7610u-driver/sta/auth.c
mt7610u-driver/common/scan.c
mt7610u-driver/include/mac_ral/rf_ctrl.h
mt7610u-driver/mcu/bin/MT7610_formal_1.9.bin
mt7610u-driver/include/rtmp_osabl.h
mt7610u-driver/include/rtmp_def.h
mt7610u-driver/sta/wpa.c
mt7610u-driver/.gitignore
mt7610u-driver/os/linux/rt_main_dev.c
mt7610u-driver/doc/History.txt
mt7610u-driver/include/dfs.h
mt7610u-driver/chips/rt65xx.c
mt7610u-driver/common/crypt_md5.c
mt7610u-driver/include/mlme_sys.h
mt7610u-driver/common/wfd.c
mt7610u-driver/include/cfg80211.h
mt7610u-driver/include/rtmp_os.h
mt7610u-driver/common/rtmp_init.c
mt7610u-driver/
mt7610u-driver/os/linux/cat
mt7610u-driver/common/cmm_sync.c
mt7610u-driver/common/cmm_data.c
mt7610u-driver/include/client_wds_cmm.h
mt7610u-driver/common/cmm_wpa.c
mt7610u-driver/sta/dls.c
mt7610u-driver/include/mac_ral/
mt7610u-driver/common/cmm_aes.c
mt7610u-driver/common/frq_cal.c
mt7610u-driver/os/linux/cfg80211.c
mt7610u-driver/doc/
mt7610u-driver/common/cmm_tkip.c
mt7610u-driver/common/rt_os_util.c
mt7610u-driver/include/mac_ral/rtmp_mac.h
mt7610u-driver/doc/FirmwareHistory.txt
mt7610u-driver/common/mlme.c
mt7610u-driver/include/rtusb_io.h
mt7610u-driver/common/rt_led.c
mt7610u-driver/mcu/bin/MT7610_formal_1.0.bin
mt7610u-driver/include/mac_ral/mac_usb.h
mt7610u-driver/sta/tdls_chswitch_mng.c
mt7610u-driver/include/mac_ral/pbf.h
mt7610u-driver/doc/iwpriv_usage.txt
mt7610u-driver/common/cmm_sanity.c
mt7610u-driver/os/linux/Kconfig.ap.soc
mt7610u-driver/include/link_list.h
mt7610u-driver/os/linux/rt_profile.c
mt7610u-driver/os/linux/MacDump.txt
mt7610u-driver/include/frq_cal.h
mt7610u-driver/doc/wps_iwpriv_usage.txt
mt7610u-driver/os/
mt7610u-driver/os/linux/Kconfig.sta.soc
mt7610u-driver/include/iface/rtmp_usb.h
mt7610u-driver/os/linux/rt_linux.c
mt7610u-driver/doc/RT2860card.readme
mt7610u-driver/iwpriv_usage.txt
mt7610u-driver/sta_ate_iwpriv_usage.txt
mt7610u-driver/common/spectrum.c
mt7610u-driver/mcu/mcu.c
mt7610u-driver/doc/README_STA_pci
mt7610u-driver/common/crypt_arc4.c
mt7610u-driver/include/crypt_arc4.h
mt7610u-driver/include/wsc.h
mt7610u-driver/include/rt_config.h
mt7610u-driver/include/br_ftph.h
mt7610u-driver/include/
mt7610u-driver/include/client_wds.h
mt7610u-driver/common/
mt7610u-driver/hw_ctrl/
mt7610u-driver/os/linux/sta_ioctl.c
mt7610u-driver/common/rtusb_bulk.c
mt7610u-driver/include/rtmp_comm.h
mt7610u-driver/common/rtusb_data.c
mt7610u-driver/include/mcu/
mt7610u-driver/common/rtmp_init_inf.c
mt7610u-driver/include/os/rt_linux.h
anthony@tower ~/Desktop $ cd ~/Desktop/mt7610u-driver


anthony@tower ~/Desktop/mt7610u-driver $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.0-64-generic/build M=/home/anthony/Desktop/mt7610u-driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-64-generic'
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_profile.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/assoc.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/auth.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/auth_rsp.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sync.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sanity.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/rtmp_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/connect.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/wpa.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/sta/sta_cfg.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_vht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/vht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_md5.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_sha2.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_hmac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_aes.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/crypt_arc4.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/mlme.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_wep.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/action.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_init.o
/home/anthony/Desktop/mt7610u-driver/common/rtmp_init.c: In function ‘NICInitializeAsic.part.0’:
/home/anthony/Desktop/mt7610u-driver/common/rtmp_init.c:1168:1: warning: the frame size of 2040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_init_inf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_tkip.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_aes.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_sync.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_sanity.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_info.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_cfg.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_wpa.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_radar.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/spectrum.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtmp_timer.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_channel.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_profile.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_asic.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/scan.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_cmd.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/uapsd.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/ps.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/ra_ctrl.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_legacy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_ags.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/rtmp_chip.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/txpower.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mac/rtmp_mac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_hw.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_entrytb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rtmp_phy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rlt_phy.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/phy/rlt_rf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.o
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c: In function ‘StaQuickResponeForRateUpExecAdapt’:
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c:1064:38: warning: comparison of constant ‘2’ with boolean expression is always false [-Wbool-compare]
   else if (pAd->CommonCfg.TrainUpRule==2 && Rssi<=pAd->CommonCfg.TrainUpRuleRSSI)
                                      ^
/home/anthony/Desktop/mt7610u-driver/rate_ctrl/alg_grp.c:1068:38: warning: comparison of constant ‘3’ with boolean expression is always false [-Wbool-compare]
   else if (pAd->CommonCfg.TrainUpRule==3 && Rssi<=pAd->CommonCfg.TrainUpRuleRSSI)
                                      ^
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/ba_action.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mgmt/mgmt_ht.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_os_util.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/sta_ioctl.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_linux.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_main_dev.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_led.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/cfg80211.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/cfg80211drv.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_mac_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/cmm_data_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_io.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_data.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rtusb_bulk.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_usb.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/rt_rf.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/rt65xx.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/chips/mt76x0.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mac/ral_nmac.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mcu/mcu.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/mcu/mcu_and.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/rt_usb_util.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/os/linux/usb_main_dev.o
  CC [M]  /home/anthony/Desktop/mt7610u-driver/common/frq_cal.o
  LD [M]  /home/anthony/Desktop/mt7610u-driver/mt7610u.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/anthony/Desktop/mt7610u-driver/mt7610u.mod.o
  LD [M]  /home/anthony/Desktop/mt7610u-driver/mt7610u.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-64-generic'



anthony@tower ~/Desktop/mt7610u-driver $ sudo make install
[sudo] password for anthony:
cp -n firmware/* /lib/firmware
cp -n mt7610u.ko /lib/modules/4.4.0-64-generic/kernel/drivers/net/wireless/
depmod -a
anthony@tower ~/Desktop/mt7610u-driver $ sudo modprobe mt7610u
anthony@tower ~/Desktop/mt7610u-driver $
[close]



It seems that this usb aerial with its alleged dual band 2G and 5G signal is a sack of manure, do you know of a reasonable priced dongle that will give me preferably a minimum of 300mbps, which I can just plug and go..?   ;)

Regards Cavy   :D
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 09:37:18 am
Before you look for another, what's the output from:
Code: [Select]
rfkill list
and
Code: [Select]
sudo lshw -C network
and
Code: [Select]
iwlist scan
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 01:11:48 pm

With the iwlist scan, it lists mine and my neighbours wifi   ;)

Spoiler (click here to view / hide)
anthony@tower ~ $ rfkill list
0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff
  *-network
       description: Wireless interface
       physical id: 2
       logical name: wlan0
       serial: 00:11:22:34:04:d5
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=RALINK WLAN multicast=yes wireless=Ralink STA
anthony@tower ~ $ iwlist scan
lo        Interface doesn't support scanning.

enp0s31f6  Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 00:8B:5D:9A:63:DA
                    Protocol:802.11b/g/n
                    ESSID:"BTHomeHub2-RCC4"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=37/100  Signal level=-75 dBm  Noise level=-70 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
          Cell 02 - Address: 06:8B:5D:9A:63:DA
                    Protocol:802.11b/g/n
                    ESSID:"BTWiFi"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=39/100  Signal level=-74 dBm  Noise level=-69 dBm
                    Encryption key:off
                    Bit Rates:54 Mb/s
          Cell 03 - Address: 0A:8B:5D:9A:63:DA
                    Protocol:802.11b/g/n
                    ESSID:"BTWiFi-with-FON"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=39/100  Signal level=-74 dBm  Noise level=-69 dBm
                    Encryption key:off
                    Bit Rates:54 Mb/s
          Cell 04 - Address: E8:FC:AF:28:12:60
                    Protocol:802.11b/g/n
                    ESSID:"VM320187-2G"
                    Mode:Managed
                    Frequency:2.412 GHz (Channel 1)
                    Quality=37/100  Signal level=-75 dBm  Noise level=-70 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD220050F204104A00011010440001021057000101103C0001011049000600372A000120
          Cell 05 - Address: 9C:D3:6D:6F:66:48
                    Protocol:802.11b/g/n
                    ESSID:"VM226117-2G"
                    Mode:Managed
                    Frequency:2.427 GHz (Channel 4)
                    Quality=13/100  Signal level=-85 dBm  Noise level=-80 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD220050F204104A00011010440001021057000101103C0001011049000600372A000120
          Cell 06 - Address: 20:0C:C8:BF:0B:A8
                    Protocol:802.11b/g/n
                    ESSID:"VM196043-2G"
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality=76/100  Signal level=-60 dBm  Noise level=-92 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD220050F204104A00011010440001021057000101103C0001011049000600372A000120
          Cell 07 - Address: 90:72:40:11:86:34
                    Protocol:802.11b/g/n
                    ESSID:"Apple Welford's Network"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=47/100  Signal level=-71 dBm  Noise level=-75 dBm
                    Encryption key:on
                    Bit Rates:57.5 Mb/s
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
          Cell 08 - Address: 32:CD:A7:16:38:37
                    Protocol:802.11g
                    ESSID:"DIRECT-lQC410 Series"
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality=65/100  Signal level=-64 dBm  Noise level=-92 dBm
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD3B0050F204104A00011010440001021049000E00372A0001200106FFFFFFFFFFFF1054000800060050F20400011011000B4334313020536572696573
          Cell 09 - Address: 20:0C:C8:A3:22:68
                    Protocol:802.11a/n
                    ESSID:"VM196043-5G"
                    Mode:Managed
                    Frequency:5.22 GHz (Channel 44)
                    Quality=55/100  Signal level=-68 dBm  Noise level=-92 dBm
                    Encryption key:on
                    Bit Rates:120 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD220050F204104A00011010440001021057000101103C0001021049000600372A000120
          Cell 10 - Address: 90:72:40:11:86:35
                    Protocol:802.11a/n
                    ESSID:"Apple Welford's Network 5GHz"
                    Mode:Managed
                    Frequency:5.745 GHz
                    Quality=23/100  Signal level=-81 dBm  Noise level=-83 dBm
                    Encryption key:on
                    Bit Rates:120 Mb/s
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 03:43:11 pm
So what makes you say it's not working ?
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 04:38:59 pm

 ;)  https://sites.google.com/site/myonlinepixies/home/gremlins   ;)


 :-\
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 05:10:02 pm
that image is showing the wireless adapter as "DISABLED" .. yet the "lshw" output above doesn't show it as disabled  :-\

check it's not disabled with
Code: [Select]
sudo lshw -C network
and
Code: [Select]
rfkill list

and if it's NOT disabled, try deleting any wireless profiles in networkmanager and recreating one.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 05:27:38 pm
If I knew its device name, it might work. But how...?  :(

The old coal powered dongle identifies itself no probs.   ;)

 ;)  update with pixs https://sites.google.com/site/myonlinepixies/home/gremlins  ;)
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 05:37:57 pm
You are confusing matters again by posting images of output from the old working adapter .. this is irrelevant, and just confuses matters .. I ONLY want info about the non-working adapter.

And can you not post images, rather the terminal output .. I can't copy/paste from an image.

what is the output from:
Code: [Select]
rfkill list
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 05:44:49 pm
Okay removed other dongle image.

This is the entire output from previous question.

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff
  *-network DISABLED
       description: Wireless interface
       physical id: 2
       logical name: wlan0
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=RALINK WLAN multicast=yes wireless=Ralink STA
anthony@tower ~ $ rfkill list
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
anthony@tower ~ $ iwlist scan
lo        Interface doesn't support scanning.

enp0s31f6  Interface doesn't support scanning.

wlan0     Failed to read scan data : Network is down

anthony@tower ~ $


rfkill list same as previous.

Code: [Select]
anthony@tower ~ $ rfkill list
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
anthony@tower ~ $
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 06:31:13 pm
Okay you'll have to give me a day or so to test out some other drivers building against the 4.4 kernel in a VM, because I'm currently running the 4.8 kernel series so the build may be going differently.
(I'll try to do this tomorrow)

Meanwhile, let's get rid of that driver:
Code: [Select]
cd ~/Desktop/mt7610u-driver
then
Code: [Select]
sudo make uninstall
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 28, 2017, 06:00:57 am
Okey Dokey mate   :D

Drivers uninstalled following your above instructions. Cheers  8)

Your earlier comment about possible issues arising after a kernel upgrade:

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.

I have read somewhere (probably Pjotr's site), about pinning your known working kernel to eliminate potential issues with drivers after an upgrade.   ;)  I will bow to your opinion on this matter, if you do not think it is a wise move.   ;)
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on March 01, 2017, 03:46:08 pm
I haven't forgotten this cavy, just feeling a bit **it today :-X