Return-path: Received: from mail-qa0-f46.google.com ([209.85.216.46]:42394 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064Ab2D1X0N convert rfc822-to-8bit (ORCPT ); Sat, 28 Apr 2012 19:26:13 -0400 MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: References: <20120427094007.GU3157@wantstofly.org> <20120427094637.GV3157@wantstofly.org> <20120427095842.GW3157@wantstofly.org> <20120427101732.GX3157@wantstofly.org> <20120427185809.GZ3157@wantstofly.org> Date: Sun, 29 Apr 2012 01:26:10 +0200 Message-ID: (sfid-20120429_012619_309906_A80A4FA3) Subject: Re: [PATCH] mwl8k: Add 0x2a02 PCI device-id (Marvell 88W8361) From: Sedat Dilek To: Jim Cromie Cc: Lennert Buytenhek , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lautriv Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, Apr 29, 2012 at 1:11 AM, Jim Cromie wrote: > 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 Unfortunately, [1] says not much about debugging. Anyway, Lennert has some new informations. Let's see what the experts will say. - Sedat - [1] http://wireless.kernel.org/en/users/Drivers/mwl8k