On Wed, 2012-12-12 at 08:18 +0000, Alberto Garau wrote:
> Hi Luca,
>
> yes that's a great news for us.
>
> Yesterday afternoon with "iwlist wlan0 scan" (not "iw" yet) I saw also other two networks essids (for a small amount of seconds only)
> which I'm interested in.
>
> This seems to say that the networks I would like to connect to are available to the wl1271.
>
> In the meantime that I'm cross building "iw", I would like to connect to an unprotected network called "Inpeco-test"(no WEP, no WPA).
>
> Would you be so kind to suggest me the serie of commands I have to launch to connect to this network ? I would
> like then to ping outside of course.
ifconfig wlan0 up
iw wlan0 connect -w Inpeco-test
Then, to ping, you need to set your IP address, either with a DHCP
client or statically.
> I have got also one technical question. In the source code of the driver I have found for wl1271_spi.c in kernel
> 2.6.37 I have interrupts set in RISING_EDGE while the datasheet (in attachment: 4.1.18 at pag 19) talks about FALLING_EDGE.
> Which is the right setting to be applied and why ?
We currently use level and high with one shot as default. There are
some platforms that use rising, though, so we have a platform_quirk
value that enables us to toggle that.
You could be missing some interrupts by using rising and this could be
the reason why you don't see the SSIDs consistently.
--
Luca.
SGkgTHVjYSwNCg0KSSdtIHRyeWluZyB0byBjYWxpYnJhdGUgbXkgZGV2aWNlIGFzIHN1Z2dlc3Rl
ZCwgZm9sbG93aW5nIHRoZSBndWlkZSBmb3VuZCBhdDogaHR0cDovL3Byb2Nlc3NvcnMud2lraS50
aS5jb20vaW5kZXgucGhwL09NQVBfV2lyZWxlc3NfQ29ubmVjdGl2aXR5X0NhbGlicmF0aW9uX1By
b2NjZXNzX05MQ1ANCg0KSW4gcGFydGljdWxhciBJJ20gdHJ5aW5nIHRvIHJlcGxpY2F0ZSB0aGUg
ZXhhbXBsZSBhdCB0aGUgZW5kIG9mIHRoZSBkb2N1bWVudCBhbmQgYXQgc3RlcCAzIG9mIHRoZSBl
eGFtcGxlIEknbSBvYnRhaW5pbmc6DQoNCnJvb3RAKG5vbmUpOn4vdGktdXRpbHMjIC4vY2FsaWJy
YXRvciBwbHQgY2FsaWJyYXRlDQp3bDEyNzE6IHBvd2VyI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dCBpcyBvcGVuIGRyYWluDQo+IA0KPiBEbyB5b3UgdGhpbmsgaXMgcmlnaHQgYWNjb3JkaW5nIGRv
IFJJU0lOR19FREdFIGludGVycnVwdCA/DQoNCkkgdGhpbmsgdGhpcyBpcyBva2F5LiAgSSBkb24n
dCB0aGluayB0aGUgcHJvYmxlbSBpcyB0aGUgaW50ZXJydXB0IG5vdy4NCg0KWW91IHNob3VsZCB0
cnkgdG8gY2FsaWJyYXRlIHlvdXIgZGV2aWNlIGFuZCBnZW5lcmF0ZSBhIHByb3BlciBOVlMgZmls
ZS4NCg0KLS0NCkx1Y2EuDQoNCg0K
On Wed, 2012-12-12 at 10:13 +0000, Alberto Garau wrote:
> Thanks Luca,
>
> we tried with FALLING_EDGE for the interrupt but the driver got stucked so I had to put again RISING_EDGE.
>
> We successfully cross compiled iw but also with that tool we always see only on ESSID from one specific AP
I didn't expect the scan to improve with iw, but at least now you're
using the right tool. :)
> while the others ESSID from the second AP are available only sometime.
>
> That's very strange.
>
> Do you think we are facing calibration problems ?
Yes, I guess calibration is the most likely cause now.
> In our CMD0 we have
>
> bit 13 = 1 IB interrupt is active high
>
> bit 14 = 1 IB interrupt is open drain
>
> Do you think is right according do RISING_EDGE interrupt ?
I think this is okay. I don't think the problem is the interrupt now.
You should try to calibrate your device and generate a proper NVS file.
--
Luca.
VGhhbmtzIEx1Y2EsDQoNCndlIHRyaWVkIHdpdGggRkFMTElOR19FREdFIGZvciB0aGUgaW50ZXJy
dXB0IGJ1dCB0aGUgZHJpdmVyIGdvdCBzdHVja2VkIHNvIEkgaGFkIHRvIHB1dCBhZ2FpbiBSSVNJ
TkdfRURHRS4NCg0KV2Ugc3VjY2Vzc2Z1bGx5IGNyb3NzIGNvbXBpbGVkIGl3IGJ1dCBhbHNvIHdp
dGggdGhhdCB0b29sIHdlIGFsd2F5cyBzZWUgb25seSBvbiBFU1NJRCBmcm9tIG9uZSBzcGVjaWZp
YyBBUA0KDQp3aGlsZSB0aGUgb3RoZXJzI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