Re: MediaTek WiFi hardware support in upstream kernel

2015-12-23 Thread poma
On 27.06.2015 22:45, poma wrote:
> 
> mt7601u landed in 'linux-next'
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/drivers/net/wireless/mediatek/mt7601u
> 
> the v4.2 kernel is predicted for Sunday, 2015-08-23
> http://phb-crystal-ball.org
> 
> For the firmware(mt7601u.bin) as part of the essential functionality of the 
> device
> it would be good to land in 'linux-firmware' *even* before the actual kernel 
> release v4.2
> http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree
> 
> 
> tempus fugit
> 


Add firmware for mt7601u. version 34.
http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/?id=9df5430

Thanks Hua Shao for the firmware,
and of course,
thanks Jakub Kiciński for the driver.

Oh yeah!


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Mediatek wifi

2015-12-22 Thread Linus Walleij
On Mon, Dec 21, 2015 at 1:09 PM, Anca Emanuel  wrote:

> https://github.com/neurobin/MT7630E is reported to work for wifi.

Yes this works because it contains a forked and bitrotting copy
of the entire Mediatek code drop including a fork of rt2x00 from
the v3.10 kernel. It's not going to last, and I can't
get it to compile properly with the most recent Fedora kernel
relase (v4.3.x-based).

Ubuntu will also run into the problem sooner or later. :(

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Mediatek wifi

2015-12-21 Thread Anca Emanuel
Sorry, 's/usb/pci'

On Mon, Dec 21, 2015 at 2:09 PM, Anca Emanuel  wrote:
> Hi Linus Walleij, and everyone interested.
>
> http://askubuntu.com/questions/676390/no-wi-fi-on-ubuntu-14-04-lts-asus-notebook-with-mediatek-mt7630e
>
> Here is the bug report:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1220146
>
> https://github.com/neurobin/MT7630E is reported to work for wifi.
>
> Maybe it works to add usb ids to
> https://github.com/torvalds/linux/tree/master/drivers/net/wireless/rt2x00
> and firmware.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Mediatek wifi

2015-12-21 Thread Anca Emanuel
Hi Linus Walleij, and everyone interested.

http://askubuntu.com/questions/676390/no-wi-fi-on-ubuntu-14-04-lts-asus-notebook-with-mediatek-mt7630e

Here is the bug report:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1220146

https://github.com/neurobin/MT7630E is reported to work for wifi.

Maybe it works to add usb ids to
https://github.com/torvalds/linux/tree/master/drivers/net/wireless/rt2x00
and firmware.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-06-27 Thread poma

mt7601u landed in 'linux-next'
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/log/drivers/net/wireless/mediatek/mt7601u

the v4.2 kernel is predicted for Sunday, 2015-08-23
http://phb-crystal-ball.org

For the firmware(mt7601u.bin) as part of the essential functionality of the 
device
it would be good to land in 'linux-firmware' *even* before the actual kernel 
release v4.2
http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree


tempus fugit

--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-05-21 Thread poma
On 20.05.2015 19:14, Jakub Kiciński wrote:
 On Wed, 20 May 2015 19:06:04 +0200, poma wrote:
 With the script 'mt7601u-fw-install' can be initiated the download and 
 installation of the required firmware,
 though it would be optimal to resolve it in the following manner:

 In OpenWrt repo - mt76 - mac80211 driver for MediaTek MT76x2 802.11ac chips
 https://github.com/openwrt/mt76

 there is a license file together with firmwares:
 https://github.com/openwrt/mt76/blob/master/firmware


 Whether the same can be done with:
 mt7601u -  Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi 
 dongle
 https://github.com/kuba-moo/mt7601u
 ?
 
 I will ask MediaTek to send firmware to linux-firmware.git once the
 driver passes review and is accepted to mainline.
 

Yeah, the foundation is already there:
linux-firmware: Add firmware files for mtk mt7630/mt7650 chipsets
http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/?id=8267525

Good luck.


--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-05-20 Thread poma
On 18.05.2015 02:03, poma wrote:
 
 Preliminary test results
 
 - lsusb -d 148f:7601:
 Bus 001 Device 007: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless 
 Adapter
 
 
 - https://github.com/kuba-moo/mt7601u
 - git log -1:
 commit ad5474ecd9fd6efd4a7f03f4a8c71ea4bb57ca73
 Author: Jakub Kicinski kubak...@wp.pl
 Date:   Wed May 6 20:44:18 2015 +0200
 
 make sure .disconnect() doesn't cleanup the device if .resume() failed
 
 Signed-off-by: Jakub Kicinski kubak...@wp.pl
 
 
 - modinfo mt7601u:
 filename:   /lib/modules/4.0.3-202.fc21.x86_64/updates/mt7601u.ko
 license:GPL
 firmware:   mt7601u.bin
 alias:  usb:v7392p7710d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v2A5Fp1000d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v2955p1001d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v2955p0001d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v2717p4106d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v2001p3D04d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v148Fp760Dd*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v148Fp760Cd*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v148Fp760Bd*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v148Fp7601d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v13D3p3434d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v13D3p3431d*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v0E8Dp760Bd*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v0E8Dp760Ad*dc*dsc*dp*ic*isc*ip*in*
 alias:  usb:v0B05p17D3d*dc*dsc*dp*ic*isc*ip*in*
 depends:cfg80211,mac80211
 vermagic:   4.0.3-202.fc21.x86_64 SMP mod_unload 
 signer: Fedora kernel signing key
 sig_key:95:7D:C8:E5:9F:5D:E6:03:71:49:1A:D0:9A:C6:8F:85:16:6C:B3:94
 sig_hashalgo:   sha256
 
 
 - md5sum /lib/firmware/mt7601u.bin:
 696cedb8e76ecc0cda9f9b0d3972c64d  /lib/firmware/mt7601u.bin
 
 
 - NetworkManager --version:
 1.0.2-2.fc21
 
 
 plug in device:
 - dmesg:
 usb 1-4: new high-speed USB device number 6 using ehci-pci
 usb 1-4: New USB device found, idVendor=148f, idProduct=7601
 usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 usb 1-4: Product: 802.11 n WLAN
 usb 1-4: Manufacturer: MediaTek
 usb 1-4: SerialNumber: 1.0
 cfg80211: ...
 ...
 usb 1-4: reset high-speed USB device number 6 using ehci-pci
 mt7601u 1-4:1.0: ASIC revision: 76010001 MAC revision: 76010500
 mt7601u 1-4:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 
 201302052146
 mt7601u 1-4:1.0: Warning: unsupported EEPROM version 0d
 mt7601u 1-4:1.0: EEPROM ver:0d fae:00
 ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
 usbcore: registered new interface driver mt7601u
 mt7601u 1-4:1.0 wlp0s2f1u4: renamed from wlan0
 ...
 cfg80211: ...
 ...
 wlp0s2f1u4: authenticate with BSSID
 wlp0s2f1u4: send auth to BSSID (try 1/3)
 wlp0s2f1u4: authenticated
 wlp0s2f1u4: associate with BSSID (try 1/3)
 wlp0s2f1u4: RX AssocResp from BSSID (capab=0x411 status=0 aid=1)
 wlp0s2f1u4: associated
 
 
 - iwconfig wlp0s2f1u4:
 wlp0s2f1u4  IEEE 802.11bgn  ESSID:AP  
   Mode:Managed  Frequency:2.422 GHz  Access Point: BSSID   
   Bit Rate=135 Mb/s   Tx-Power=20 dBm   
   Retry short limit:7   RTS thr:off   Fragment thr:off
   Encryption key:off
   Power Management:off
   Link Quality=67/70  Signal level=-43 dBm  
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:0  Invalid misc:873   Missed beacon:0
 
 
...

Can be tested with the test compilation I share with you bona fide:
http://goo.gl/Gm4ffO
ISO/Fedora-Live-Xfce-WiFi.iso

Runs on baremetal  QEMU/KVM/Libvirt/Virtual Machine Manager
http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest


With the script 'mt7601u-fw-install' can be initiated the download and 
installation of the required firmware,
though it would be optimal to resolve it in the following manner:

In OpenWrt repo - mt76 - mac80211 driver for MediaTek MT76x2 802.11ac chips
https://github.com/openwrt/mt76

there is a license file together with firmwares:
https://github.com/openwrt/mt76/blob/master/firmware


Whether the same can be done with:
mt7601u -  Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi dongle
https://github.com/kuba-moo/mt7601u
?


--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-05-20 Thread Jakub Kiciński
On Wed, 20 May 2015 19:06:04 +0200, poma wrote:
 With the script 'mt7601u-fw-install' can be initiated the download and 
 installation of the required firmware,
 though it would be optimal to resolve it in the following manner:
 
 In OpenWrt repo - mt76 - mac80211 driver for MediaTek MT76x2 802.11ac chips
 https://github.com/openwrt/mt76
 
 there is a license file together with firmwares:
 https://github.com/openwrt/mt76/blob/master/firmware
 
 
 Whether the same can be done with:
 mt7601u -  Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi 
 dongle
 https://github.com/kuba-moo/mt7601u
 ?

I will ask MediaTek to send firmware to linux-firmware.git once the
driver passes review and is accepted to mainline.
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-04-05 Thread Etna
This is sorely needed given the miserable state of wifi drivers in the 
Linux kernel.


Kernel maintainers, can this be pushed to mainline? It's not a vendor 
driver after all, and it uses nl80211 instead of WEXT.



Regards,
Etna



On 26/02/15 22:40, Jakub Kiciński wrote:


On Thu, 26 Feb 2015 14:56:46 +0100, poma wrote:


On 06.02.2015 18:29, Jakub Kiciński wrote:


Hello everyone! I put together a mac80211 driver for Mediatek 
MT7601U. It's partially based on Felix's mt76, but I'm not sure if 
it will make sense to merge the two together. MT7601U is a pretty 
old 1x1 bgn chip for USB dongles and mt76 now only supports the 
latest and greatest ac APs. I'm testing STA functionality right now 
and it seems to be working ok. The code is very much a work in 
progress but if anyone is interested you can get it here: 
https://github.com/kuba-moo/mt7601uCheers, kuba -- To unsubscribe 
from this list: send the line unsubscribe linux-wireless in the 
body of a message to majordomo@vger.kernel.orgMore majordomo info 
at http://vger.kernel.org/majordomo-info.html


How many mt7601u module editions exists there? :) - vendor's - 
vendor's patched (how many forms of the same) - your reinvented - 
the one on which pán Gruszka allegedly works? - any more?


I assume you mean to ask how many different drivers are there. There 
is the vendor 3.0.0.4 STA driver which only has client functionality. 
Many patched versions of this driver exist on GitHub. There is also 
an older version of vendor driver which can work as an AP. My 
mac80211-based driver is the only non-vendor version I'm aware of.




--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-02-26 Thread poma
On 06.02.2015 18:29, Jakub Kiciński wrote:
 Hello everyone!
 
 I put together a mac80211 driver for Mediatek MT7601U.  It's partially
 based on Felix's mt76, but I'm not sure if it will make sense to merge
 the two together.  MT7601U is a pretty old 1x1 bgn chip for USB dongles
 and mt76 now only supports the latest and greatest ac APs.
 
 I'm testing STA functionality right now and it seems to be working ok.
 The code is very much a work in progress but if anyone is interested you
 can get it here:
 
 https://github.com/kuba-moo/mt7601u
 
 Cheers,
 kuba
 --
 To unsubscribe from this list: send the line unsubscribe linux-wireless in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 

How many mt7601u module editions exists there? :)
- vendor's
- vendor's patched (how many forms of the same)
- your reinvented
- the one on which pán Gruszka allegedly works?
- any more?


--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: mt7601u dies during channel switch (was: MediaTek WiFi hardware support in upstream kernel)

2015-02-26 Thread Jakub Kiciński
On Thu, 26 Feb 2015 19:50:04 +0100, Sergei Antonov wrote:
 Jakub, I'll do all of it, but for now just one quick question: what
 firmware binary blob should I use with your driver? Maybe I just took
 a wrong firmware... You can send me yours.

I have the one from vendor package.  The MD5 sum is

# md5sum /usr/lib/firmware/mt7601u.bin 
696cedb8e76ecc0cda9f9b0d3972c64d  /usr/lib/firmware/mt7601u.bin
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


mt7601u dies during channel switch (was: MediaTek WiFi hardware support in upstream kernel)

2015-02-25 Thread Jakub Kiciński
On Wed, 25 Feb 2015 01:49:02 +0100, Sergei Antonov wrote:
 On 6 February 2015 at 18:29, Jakub Kiciński moorr...@wp.pl wrote:
  Hello everyone!
 
  I put together a mac80211 driver for Mediatek MT7601U.  It's partially
  based on Felix's mt76, but I'm not sure if it will make sense to merge
  the two together.  MT7601U is a pretty old 1x1 bgn chip for USB dongles
  and mt76 now only supports the latest and greatest ac APs.
 
  I'm testing STA functionality right now and it seems to be working ok.
  The code is very much a work in progress but if anyone is interested you
  can get it here:
 
  https://github.com/kuba-moo/mt7601u
 
 Hi, Jakub! I happen to have 7601 dongle, so I tested you driver. There
 were some problems, see dmesg | grep mt7 output:

OK, let me start with a set of basic questions.

What device do you have (brand + model or picture on ebay please;))?
What's the device ID?
What platform are you working on?
Is this error persistent or a one-time thing?
Does the vendor driver work with your device?
Can you also show content of
/sys/kernel/debug/ieee80211/phy*/mt76/eeprom_param
?

 [3.174960] mt7601u 3-5:1.0: ASIC revision: 76010001  MAC revision: 
 76010500
 [3.181705] mt7601u 3-5:1.0: Firmware Version: 0.1.00 Build: 7640
 Build time: 201302052146
 [3.573018] mt7601u 3-5:1.0: Warning: unsupported EEPROM version 0d
 [3.574853] mt7601u 3-5:1.0: EEPROM ver:0d fae:00
 [3.816647] usbcore: registered new interface driver mt7601u
 [   10.461251] mt7601u_add_interface idx:0
 [   10.463193] mt7601u_bss_info_changed 000e
 [   10.469748] mt7601u_conf_tx 03 - 
 [   10.473738] mt7601u_conf_tx 02 - 0001
 [   10.477856] mt7601u_conf_tx 01 - 0002
 [   10.481980] mt7601u_conf_tx 00 - 0003
 [   10.486849] mt7601u_bss_info_changed 2000
 [   10.488671] mt7601u_config  ch:1
 [   10.504305] mt76_configure_filter changed:0 total:8000
 [   10.508327] mt76_configure_filter changed:0 total:8000
 [   10.550671] mt76_configure_filter changed:0 total:8000
 [   10.616870] mt7601u_config 0100 ch:1
 [   10.619449] mt76_configure_filter changed:10 total:8010
 [   10.621541] mt7601u_config 0040 ch:1
 [   10.692407] mt7601u_config 0040 ch:2
 [   10.992113] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
 [   11.291819] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
 [   11.591524] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
 [   11.891230] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
 [   12.190936] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
 [   12.192790] mt7601u 3-5:1.0: Error: mt7601u_mcu_wait_resp timed out

Firmware clearly died somewhere between switch to channel 1 and to
channel 2...  I made some changes to the FW loading routine, I will try
to check the traces later today to confirm that I didn't break anything.

 Is it because of unsupported EEPROM version 0d?

Don't think so.  It's just for compatibility with vendor driver,
they warn too.  All new devices have EEPROM ver == 0x0d though.  I plan
to ask MediaTek about it in a week or two (Chinese New Year) and
remove the warning.
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-02-24 Thread Sergei Antonov
On 6 February 2015 at 18:29, Jakub Kiciński moorr...@wp.pl wrote:
 Hello everyone!

 I put together a mac80211 driver for Mediatek MT7601U.  It's partially
 based on Felix's mt76, but I'm not sure if it will make sense to merge
 the two together.  MT7601U is a pretty old 1x1 bgn chip for USB dongles
 and mt76 now only supports the latest and greatest ac APs.

 I'm testing STA functionality right now and it seems to be working ok.
 The code is very much a work in progress but if anyone is interested you
 can get it here:

 https://github.com/kuba-moo/mt7601u

Hi, Jakub! I happen to have 7601 dongle, so I tested you driver. There
were some problems, see dmesg | grep mt7 output:

[3.174960] mt7601u 3-5:1.0: ASIC revision: 76010001  MAC revision: 76010500
[3.181705] mt7601u 3-5:1.0: Firmware Version: 0.1.00 Build: 7640
Build time: 201302052146
[3.573018] mt7601u 3-5:1.0: Warning: unsupported EEPROM version 0d
[3.574853] mt7601u 3-5:1.0: EEPROM ver:0d fae:00
[3.816647] usbcore: registered new interface driver mt7601u
[   10.461251] mt7601u_add_interface idx:0
[   10.463193] mt7601u_bss_info_changed 000e
[   10.469748] mt7601u_conf_tx 03 - 
[   10.473738] mt7601u_conf_tx 02 - 0001
[   10.477856] mt7601u_conf_tx 01 - 0002
[   10.481980] mt7601u_conf_tx 00 - 0003
[   10.486849] mt7601u_bss_info_changed 2000
[   10.488671] mt7601u_config  ch:1
[   10.504305] mt76_configure_filter changed:0 total:8000
[   10.508327] mt76_configure_filter changed:0 total:8000
[   10.550671] mt76_configure_filter changed:0 total:8000
[   10.616870] mt7601u_config 0100 ch:1
[   10.619449] mt76_configure_filter changed:10 total:8010
[   10.621541] mt7601u_config 0040 ch:1
[   10.692407] mt7601u_config 0040 ch:2
[   10.992113] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
[   11.291819] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
[   11.591524] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
[   11.891230] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
[   12.190936] mt7601u 3-5:1.0: Warning: mt7601u_mcu_wait_resp retrying
[   12.192790] mt7601u 3-5:1.0: Error: mt7601u_mcu_wait_resp timed out
[   12.194491] mt7601u_config 0040 ch:3
[   12.694660] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   12.696360] mt7601u_config 0040 ch:4
[   13.194210] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   13.195873] mt7601u_config 0040 ch:5
[   13.693674] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   13.695283] mt7601u_config 0040 ch:6
[   14.193225] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   14.194808] mt7601u_config 0040 ch:7
[   14.692677] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   14.694374] mt7601u_config 0040 ch:8
[   15.192232] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   15.193766] mt7601u_config 0040 ch:9
[   15.691688] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   15.693268] mt7601u_config 0040 ch:10
[   16.191318] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   16.192891] mt7601u_config 0040 ch:11
[   16.690710] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   16.692282] mt7601u_config 0040 ch:12
[   17.190270] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   17.191771] mt7601u_config 0040 ch:13
[   17.689713] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   17.691243] mt7601u_config 0040 ch:14
[   18.189290] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   18.190810] mt7601u_config 0040 ch:1
[   18.688839] mt7601u 3-5:1.0: Error: send MCU cmd failed:-110
[   18.690304] mt76_configure_filter changed:0 total:8000
[   18.692461] mt7601u_config 0100 ch:1

Is it because of unsupported EEPROM version 0d?
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2015-02-06 Thread Jakub Kiciński
Hello everyone!

I put together a mac80211 driver for Mediatek MT7601U.  It's partially
based on Felix's mt76, but I'm not sure if it will make sense to merge
the two together.  MT7601U is a pretty old 1x1 bgn chip for USB dongles
and mt76 now only supports the latest and greatest ac APs.

I'm testing STA functionality right now and it seems to be working ok.
The code is very much a work in progress but if anyone is interested you
can get it here:

https://github.com/kuba-moo/mt7601u

Cheers,
kuba
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2014-11-12 Thread Felix Fietkau
On 2014-11-11 12:55, Oleksij Rempel wrote:
 Am 29.10.2014 um 11:17 schrieb Felix Fietkau:
 Hi Hackers,
 
 Just a quick heads up:
 I'm working on a new driver for MT7662E/MT7612E, written from scratch.
 It is already able to bring up the firmware, init the MAC and do basic
 TX/RX DMA communication with the firmware.
 I've decided to not integrate it with rt2x00, because I want to avoid
 dealing with the the unnecessarily convoluted abstractions and legacy
 code in there. I believe the result will be simpler and easier to
 maintain as a new driver.
 As soon as the basic structure is in place, I will put it on a public
 git tree and post a link here.
 
 - Felix
 
 Which chip would you suggest for starting?
The chips I'm working with are both MT7662 and MT7612. My driver already
works as a simple AP or station in 802.11n mode with some limited
aggregation support. I'm getting around 45-50 Mbit/s TCP throughput on
HT20 with iperf. I will post code soon, stay tuned!

- Felix
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2014-11-12 Thread Larry Finger

On 11/12/2014 03:04 PM, Felix Fietkau wrote:

The chips I'm working with are both MT7662 and MT7612. My driver already
works as a simple AP or station in 802.11n mode with some limited
aggregation support. I'm getting around 45-50 Mbit/s TCP throughput on
HT20 with iperf. I will post code soon, stay tuned!


Felix,

If your driver will work with the MT7630, I will be happy to test it when 
posted.

Larry


--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2014-11-11 Thread Oleksij Rempel
Am 29.10.2014 um 11:17 schrieb Felix Fietkau:
 Hi Hackers,
 
 Just a quick heads up:
 I'm working on a new driver for MT7662E/MT7612E, written from scratch.
 It is already able to bring up the firmware, init the MAC and do basic
 TX/RX DMA communication with the firmware.
 I've decided to not integrate it with rt2x00, because I want to avoid
 dealing with the the unnecessarily convoluted abstractions and legacy
 code in there. I believe the result will be simpler and easier to
 maintain as a new driver.
 As soon as the basic structure is in place, I will put it on a public
 git tree and post a link here.
 
 - Felix

Which chip would you suggest for starting?

-- 
Regards,
Oleksij



signature.asc
Description: OpenPGP digital signature


Re: MediaTek WiFi hardware support in upstream kernel

2014-10-29 Thread Felix Fietkau
Hi Hackers,

Just a quick heads up:
I'm working on a new driver for MT7662E/MT7612E, written from scratch.
It is already able to bring up the firmware, init the MAC and do basic
TX/RX DMA communication with the firmware.
I've decided to not integrate it with rt2x00, because I want to avoid
dealing with the the unnecessarily convoluted abstractions and legacy
code in there. I believe the result will be simpler and easier to
maintain as a new driver.
As soon as the basic structure is in place, I will put it on a public
git tree and post a link here.

- Felix
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2014-10-28 Thread John W. Linville
On Mon, Oct 27, 2014 at 07:19:32PM +0100, Oleksij Rempel wrote:
 Am 27.10.2014 um 16:20 schrieb John W. Linville:
  On Mon, Oct 27, 2014 at 11:02:00AM +0800, Etna wrote:
  I am not a developer, but I stumbled upon this just a couple of days ago in
  the OpenWRT forums:
 
  https://forum.openwrt.org/viewtopic.php?id=53215
 
  In short, MediaTek is looking for volunteers to help get their drivers
  mainlined in the upstream kernels; this includes drivers for their USB and
  PCI wifi hardware under both the MediaTek and Ralink brands. They are
  willing to provide chip info, reference driver, dev board, etc and even
  some degree of sponsorship, apparently subject to their management's
  approval.
 
  In exchange, they require that the volunteers fulfill the following
  requirements:
  - skilled in wifi driver development
  - provide a suitable schedule / roadmap
  - be able to get the code mainlined in the official linux kernel.
 
  Those who are keen on taking up the task can contact the original poster at
  hua.shao[AT]mediatek.com
 
  **Disclaimer: I am in no way related to, or under the employ of MediaTek or
  Ralink. I am only posting this here because I have a handful of MT wifi
  chips which I hope to see being supported in the upstream kernel so that I
  can actually use them under Linux,
  
  Well, this is mostly good to see.  I hope there is someone that wants
  to take-up the cause!
  
  If someone is interested in working-on the project above but for
  whatever reason doesn't want to deal with MediaTek on their own,
  feel free to contact me.  I'll try to be helpful however I can.
  
  Thanks,
  
  John
 
 
 Sounds interesting and as perfect possibility to learn. I would like to
 do it, but i have two concerns:
 - i never wrote an wifi driver from scratch.

FWIW, I think MediaTek already has some form of drivers.  With that
said, it might be easier to write new mac80211-based ones than to
adapt the existing ones.

 - i'm seeking for a job. It means if i will find one, this project will
 get lower priority.

No one can ask anything more.

 If nobody has problems with this two points, then i'm ok.

It sounds like we have a volunteer!  Let me know if you need any
specific help or guidance.

John
-- 
John W. LinvilleSomeday the world will need a hero, and you
linvi...@tuxdriver.com  might be all we have.  Be ready.
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: MediaTek WiFi hardware support in upstream kernel

2014-10-28 Thread Oleksij Rempel
Am 28.10.2014 um 15:06 schrieb Arend van Spriel:
 On 28-10-14 14:46, John W. Linville wrote:
 On Mon, Oct 27, 2014 at 07:19:32PM +0100, Oleksij Rempel wrote:
 Am 27.10.2014 um 16:20 schrieb John W. Linville:
 On Mon, Oct 27, 2014 at 11:02:00AM +0800, Etna wrote:
 I am not a developer, but I stumbled upon this just a couple of days ago 
 in
 the OpenWRT forums:

 https://forum.openwrt.org/viewtopic.php?id=53215

 In short, MediaTek is looking for volunteers to help get their drivers
 mainlined in the upstream kernels; this includes drivers for their USB and
 PCI wifi hardware under both the MediaTek and Ralink brands. They are
 willing to provide chip info, reference driver, dev board, etc and even
 some degree of sponsorship, apparently subject to their management's
 approval.

 In exchange, they require that the volunteers fulfill the following
 requirements:
 - skilled in wifi driver development
 - provide a suitable schedule / roadmap
 - be able to get the code mainlined in the official linux kernel.

 Those who are keen on taking up the task can contact the original poster 
 at
 hua.shao[AT]mediatek.com

 **Disclaimer: I am in no way related to, or under the employ of MediaTek 
 or
 Ralink. I am only posting this here because I have a handful of MT wifi
 chips which I hope to see being supported in the upstream kernel so that I
 can actually use them under Linux,

 Well, this is mostly good to see.  I hope there is someone that wants
 to take-up the cause!

 If someone is interested in working-on the project above but for
 whatever reason doesn't want to deal with MediaTek on their own,
 feel free to contact me.  I'll try to be helpful however I can.

 Thanks,

 John


 Sounds interesting and as perfect possibility to learn. I would like to
 do it, but i have two concerns:
 - i never wrote an wifi driver from scratch.

 FWIW, I think MediaTek already has some form of drivers.  With that
 said, it might be easier to write new mac80211-based ones than to
 adapt the existing ones.

 - i'm seeking for a job. It means if i will find one, this project will
 get lower priority.

 No one can ask anything more.

 If nobody has problems with this two points, then i'm ok.

 It sounds like we have a volunteer!  Let me know if you need any
 specific help or guidance.
 
 During LPC Felix mentioned GPLed mediatek driver for their 11ac
 chipset(s?). It is on github:
 
 https://github.com/openwrt/mtk-wifi-gpl

What is the next step?

-- 
Regards,
Oleksij



signature.asc
Description: OpenPGP digital signature


Re: MediaTek WiFi hardware support in upstream kernel

2014-10-27 Thread John W. Linville
On Mon, Oct 27, 2014 at 11:02:00AM +0800, Etna wrote:
 I am not a developer, but I stumbled upon this just a couple of days ago in
 the OpenWRT forums:
 
 https://forum.openwrt.org/viewtopic.php?id=53215
 
 In short, MediaTek is looking for volunteers to help get their drivers
 mainlined in the upstream kernels; this includes drivers for their USB and
 PCI wifi hardware under both the MediaTek and Ralink brands. They are
 willing to provide chip info, reference driver, dev board, etc and even
 some degree of sponsorship, apparently subject to their management's
 approval.
 
 In exchange, they require that the volunteers fulfill the following
 requirements:
 - skilled in wifi driver development
 - provide a suitable schedule / roadmap
 - be able to get the code mainlined in the official linux kernel.
 
 Those who are keen on taking up the task can contact the original poster at
 hua.shao[AT]mediatek.com
 
 **Disclaimer: I am in no way related to, or under the employ of MediaTek or
 Ralink. I am only posting this here because I have a handful of MT wifi
 chips which I hope to see being supported in the upstream kernel so that I
 can actually use them under Linux,

Well, this is mostly good to see.  I hope there is someone that wants
to take-up the cause!

If someone is interested in working-on the project above but for
whatever reason doesn't want to deal with MediaTek on their own,
feel free to contact me.  I'll try to be helpful however I can.

Thanks,

John
-- 
John W. LinvilleSomeday the world will need a hero, and you
linvi...@tuxdriver.com  might be all we have.  Be ready.
--
To unsubscribe from this list: send the line unsubscribe linux-wireless in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html