Other OS

Problem with "iwlist wlan0 scan"

8 3210
On Banan Pro with Raspbian, "iwlist wlan0 scan" gets result:
wlan0    Failed to read scan data : Cannot allocate memory

anyone met this problem?
like this image

iwlist

iwlist

igorpec  
Which is your kernel version?
  1. uname -a
Copy the Code
I assume you are trying to do this with onboard wireless?

Do a system upgrade ... apt-get update / upgrade

igorpec replied at Sat Aug 15, 2015 03:04
Which is your kernel version?
I assume you are trying to do this with onboard wireless?

2.png

I am in an office with many wifis

igorpec  
Edited by igorpec at Sat Aug 15, 2015 18:13

Huh. I see 10-14 networks from my office.

I never encounter this issue. I found this on Chinese Cubieboard forum. It also could be related to kernel/driver bugs.
http://cubie.cc/forum.php?mod=viewthread&tid=2698&extra=&page=2

Cubietruck and Banana PRO have almost identical chip.

Try my build - its almost one year newer ... You only need to load different wifi driver: bcmdhd (not apxxxx)

igorpec replied at Sat Aug 15, 2015 11:11
Huh. I see 10-14 networks from my office.

I never encounter this issue. I found this on Chinese Cub ...

You means using Armbian instead of Raspbian?
Or just find bcmdhd somewhere?

igorpec  
Edited by igorpec at Mon Aug 17, 2015 07:33

Modules are usually not cross compatible and this might not be the key to solve this problem.

Yes, better to use Armbian build. Get one blank SD and just try if it works for your case.

Technically you need to upgrade at least kernel. But ... since kernel is here made different way you also need to upgrade u-boot and create boot scripts.

Hi everyone.  I got the very same error as the topic starter,  on BananaPi Pro.

I fixed it and BananaPi successfully enters wireless network.  

In my case, the reason was incorrect configuration of /etc/network/interfaces file. I had "wpa-ssid" and "wpa-psk" parameters set at this file, which is not correct.

Correct is only to refer to wpa supplicant:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
pre-up wpa_supplicant -B -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
pre-down killall -q wpa_supplicant


My wpa_supplicant.conf file looks like fillowing:

ap_scan=1
network={
    ssid="XXXXXXX"
    psk="XXXXXXX"
}
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP-netdev
update_config=1


bicoj  
Linux is the type of the windows working in the system and the computers sponsored by the Lemakers and the related authorities. The forum is about to superiorpapers.com reviews for getting the solution of the whole problem and the maintaining of these sessions.

You have to log in before you can reply Login | Sign Up

Points Rules