Re: Patch for Pheecom card


From: Joerg Dorchain (joerg_at_dorchain.net)
Date: 2002-07-25 19:05:53 UTC



On Thu, Jul 25, 2002 at 09:19:53PM +0300, Jouni Malinen wrote:
>
> > When checking stuff out from cvs, the cvs checkout hangs after U
> > hostap/utils/prism2_srec.c. Nevertheless the cvs modules looks complete.
>
> Were you using compression? That is a known issue in my cvs
> configuration and I haven't yet had time to debug it. It seems to work
> fine without compression and with compression, the only visible problems
> seems to be the hang (i.e., files are OK).

Yes, that was with compression. I thought it would make sense to save some bandwidth for a complete new checkout.
>
> > At least, the card works principally.
>
> OK, good to know.
>
> >
> > wlan0: manual reset request(1)
> > hostap_plx: wlan0: resetting card
> > hostap_plx: Doing reset via direct COR access.
> > Unable to handle kernel paging request at virtual address 0000b800
>
> Argh.. Not good. Copy-paste error in cor_sreset (I used writeb, when it
> should have been outb). Fixed in CVS. Sorry for crashing your kernel,

I did not crash the kernel. The only side efect was that the modules could not be unloaded anymore. That's the difference between a crash and a controlled reboot ;-)

> but could you please still test the latest version?

I would, but it seems not to be in the repository yet. I fixed this typo by hand.

--- hostap_plx.c        25 Jul 2002 16:07:00 -0000      1.25
+++ hostap_plx.c        25 Jul 2002 19:03:37 -0000
@@ -121,7 +121,7 @@
                corsave = inb(local->cor_offset);
                outb(corsave | COR_SRESET, local->cor_offset);
                mdelay(1);
-               writeb(corsave & ~COR_SRESET, local->cor_offset);
+               outb(corsave & ~COR_SRESET, local->cor_offset);
                mdelay(1);
        } else {
                /* PLX9052 */

BTW, wavemon now shows useful data. Nice feature :)

Now iwpriv wlan0 reset 1 works. dmesg reults: wlan0: manual reset request(1)

hostap_plx: wlan0: resetting card
hostap_plx: Doing reset via direct COR access.
prism2_hw_init()
prism2_hw_config: initialized in 9806 iterations
wlan0: LinkStatus=1 (Connected)
wlan0: LinkStatus: BSSID=02:23:36:3a:69:3b NETDEV WATCHDOG: wlan0: transmit timed out wlan0 Tx timed out! Resetting card
wlan0: CMD=0021 EVSTAT=8000 OFFSET0=0000 OFFSET1=0000 SWSUPPORT0=8a32 prism2_tx_timeout: wake up queue
wlan0: scheduled card reset
hostap_plx: wlan0: resetting card
hostap_plx: Doing reset via direct COR access. wlan0: removed pending cmd_queue entry (type=1, cmd=0x010b, param0=0x0125)
prism2_hw_init()
prism2_hw_config: initialized in 9801 iterations

The card was busy with a flood ping at that time ;-)

Good work, I'd say. Thank you.

Bye,

Joerg




This archive was generated by hypermail 2.1.4.