Search Linux Wireless

RE: wl12xx over spi with no scan results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luca,

-----Original Message-----
From: Luciano Coelho [mailto:coelho@xxxxxx] 
Sent: martedì 11 dicembre 2012 10:34
To: Alberto Garau
Cc: linux-wireless@xxxxxxxxxxxxxxx; Ido Yariv; Arik Nemtsov
Subject: Re: wl12xx over spi with no scan results

On Tue, 2012-12-11 at 09:16 +0000, Alberto Garau wrote:
> Hi Luca,
> 
> -----Original Message-----
> From: Luciano Coelho [mailto:coelho@xxxxxx]
> Sent: lunedì 10 dicembre 2012 18:50
> To: Alberto Garau
> Cc: linux-wireless@xxxxxxxxxxxxxxx; Ido Yariv; Arik Nemtsov
> Subject: wl12xx over spi with no scan results (was: Re: [PATCH 20/20] 
> wlcore: Always pass DMA-able buffers to mmc functions)
> 
> Hi Alberto,
> 
> On Mon, 2012-12-10 at 17:24 +0000, Alberto Garau wrote:
> > I’m trying to make working the WL1271 TI Murata chip with our custom board.  The SPI driver seems to be running but I cannot scan from our Wifi Network. 
> > 
> > After booting the board I’m doing:
> > 
> > •	insmod /media/red/root/wl1271/wl1271.ko
> > •	insmod /media/red/root/wl1271/wl1271_spi.ko
> > •	iwconfig wlan0 mode managed
> > •	iwconfig wlan0 essid xxxxxxx
> > •	ifconfig wlan0 hw ether 00:80:E1:12:26:17 
> > •	ifconfig wlan0 192.168.40.100 netmask 255.255.255.0 up
> > 
> > Then I botain:
> > 
> > chip_id read from memory: 04030111
> > wl1271_fetch_firmware - fetching firmware wl1271-fw.bin 
> > wl1271_fetch_nvs - fetching firmware wl1271-nvs.bin
> > wl1271: firmware booted (Rev 6.1.0.50.350)
> > 
> > but unfortunately the when I run “iwlist wlan0 scan”
> > 
> > I obtain “wlan0 No scan results”
> > 
> > 
> > Could you please help us in fixing this issue ?
> 
> This could be many different things.  The first thing that comes to my 
> mind is that the scan results are the first thing that comes as a real 
> interrupt (before this all the interrupts are polled).  So are you 
> sure the interrupt line is working properly?
> 
> The interrupt line it seems to work properly. I put a printk in the 
> interrupt handler and I see it activated

Ok.


> During the firmware fetch and when I perform the "iwlista wlan0 scan".
> I kept the IRQ association to IRQ_TYPE_EDGE_RISING as your source code 
> was in 2.6.37 kernel.

That's an *ancient* kernel. :( Any chance you can try it with a newer kernel?

Unortunately not, that's our production kernel. 


> Any other idea about why the scan command it's not properly working ?

Another common problem is the clock settings.  Are you sure the correct value for board_ref_clock in your board file?

Are you talking about "wl->ref_clock = pdata->board_ref_clock;" in the probe ? Which value should I put for 38.4MHz due to the fact that it is an integer parameter ?

Thanks in advance 

Alberto

--
Luca.


��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux