Return-path: Received: from mail-lb0-f174.google.com ([209.85.217.174]:53805 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068Ab2D1XLi convert rfc822-to-8bit (ORCPT ); Sat, 28 Apr 2012 19:11:38 -0400 MIME-Version: 1.0 In-Reply-To: References: <20120427094007.GU3157@wantstofly.org> <20120427094637.GV3157@wantstofly.org> <20120427095842.GW3157@wantstofly.org> <20120427101732.GX3157@wantstofly.org> <20120427185809.GZ3157@wantstofly.org> From: Jim Cromie Date: Sat, 28 Apr 2012 17:11:06 -0600 Message-ID: (sfid-20120429_011220_163769_0789289A) Subject: Re: [PATCH] mwl8k: Add 0x2a02 PCI device-id (Marvell 88W8361) To: sedat.dilek@gmail.com Cc: Lennert Buytenhek , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lautriv Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, Apr 28, 2012 at 4:49 PM, Sedat Dilek wrote: > On Sun, Apr 29, 2012 at 12:36 AM, Jim Cromie wrote: >>>> As already pointed out, no Marwell WLAN hardware here. Marvell comics >>>> of course :-). (I had to leave that one..:-) >>> >>> A new tarball from lautriv with same outputs as before, but now tested >>> with Linux-3.4-rc4. >>> >>> - Sedat - >> >> >> heres my logs, using firmware extracted by Sedat's script, >> and the patch on mwl8k.c >> >> bottom-line, it appears to be working. >> >> its contents are a bit more pedantic, and includes data for >> another wifi card (rtl8180 based) also in the box. >> It was obtained by this script: >> >> #!/bin/bash >> >> # dmesg (Linux-3.3.3) >> # e_n_a (/etc/network/interfaces) >> # ifconfig output >> # iwconfig output >> # iw_phy output >> # ps_axu (WPA) output >> >> devs="wlan0 wlan1" >> apmac=00:14:d1:e8:65:0a >> >> loudly () { >> ? ?echo "# $@" >> ? ?fname=`echo $@ | sed -e 's/ /-/g'` >> ? ?$@ 2> $fname-err | tee $fname >> ? ?[ $? != 0 ] && echo non-zero exit on $fname: $? >> ? ?[ -s $fname-err ] || rm $fname-err >> } >> >> ( iw --debug event -f > iw-event-f )& >> pid_event=$! >> >> for N in 0 1 ; do >> ? ?loudly iw dev wlan$N interface add fish$N type monitor # flags none >> ? ?loudly iw dev fish$N set channel 8 >> ? ?loudly ifconfig fish$N up >> ? ?( tcpdump -i fish$N -s 65000 -p -U -w ?fish$N.dump )& >> ? ?pid_dump_fish$N=$! >> done >> >> loudly iw list >> >> #loudly iwspy >> # gives: Interface doesn't support wireless statistic collection >> >> for dev in $devs ; do >> ? ?loudly ifconfig $dev >> ? ?loudly iwconfig $dev >> ? ?loudly iwlist $dev scan >> ? ?loudly iw dev $dev info >> ? ?loudly iw dev $dev link >> ? ?loudly iw dev $dev scan >> ? ?loudly iw dev $dev survey dump >> done >> >> for phy in $phys ; do >> ? ?loudly iw phy $phy info >> done >> >> # these are unsupported on wlan0 >> loudly iw dev wlan1 survey dump >> loudly iw dev wlan1 station dump >> loudly iw dev wlan1 station get $apmac >> >> >> for N in 0 1 ; do >> ? ?loudly iw dev fish$N del >> done >> >> kill $pid_dump_fish0 $pid_dump_fish0 >> kill $pid_event >> >> dmesg > dmesg >> >> grep -vE '^#|key' /etc/network/interfaces > e_n_a >> >> exit > > Hi Jim, > > thanks for your testing and the nice testcase-script! > > lautriv you wanna run some more tests with Jim's script? > > Jim, how stable/fast/reliable is your WLAN connection? > Suspend/resume tested? I havent tested reliability in any way. in fact, I havent tested any data-xfer per se, will do an iperf test soon. That said, bitrate is quite low, I havent looked at why. jimc@chumly:~/projects/lx/wifi/mwl8k-8361p-logs$ grep -i MBit * iw-dev-wlan0-link: tx bitrate: 11.0 MBit/s iw-dev-wlan1-link: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-dump: tx bitrate: 1.0 MBit/s iw-dev-wlan1-station-get-00:14:d1:e8:65:0a: tx bitrate: 1.0 MBit/s my laptop is much faster than both cards in the soekris box, to same AP Connected to 00:14:d1:e8:65:0a (on wlan0) SSID: yoduh freq: 2447 RX: 191134302 bytes (2120068 packets) TX: 17440426 bytes (120666 packets) signal: -45 dBm tx bitrate: 54.0 MBit/s bss flags: dtim period: 0 beacon int: 100 If you all have some suggestions on this, Id like to hear them. And of course, any other testing you'd like too. > > Hope this helps to get native Linux support for 8361p. hear hear. FWIW, I pulled this card out of a dead Netgear WNR854T, which is linux based (and GPL compliant) > Regards, > - Sedat - > > P.S.: BTW, only to clarify it should be "e_n_i" as short-form for > /etc/network/interfaces file, but e_n_a sounds more female and nicer > :-). I caught that, but it wasnt worth "correcting" ;-) thanks Jim