wandboard quad wifi ap mode

This is the place for software discussions not having a dedicated subforum

Re: wandboard quad wifi ap mode

Postby CruX » Wed Dec 25, 2013 11:19 am

I've read this thread but have not been able to get any new information to help my problem.

For reference, this is the dmesg output with open mode
Code: Select all
[49694.912966] DHD-MON: dhd_mon_if_subif_start_xmit enter
[49694.918188] DHD-MON: dhd_mon_if_subif_start_xmit radiotap len (should be 14): 14
[49695.370844] DHD-MON: dhd_mon_if_stop enter
[49695.370866] wlan0: set promisc 0 failed
[49696.308589] DHD-MON: dhd_add_monitor enter, if name: mon.wlan0
[49696.322253] DHD-MON: dhd_add_monitor net device returned: 0xe4ae3800
[49696.328874] DHD-MON: dhd_add_monitor found a matched net device, name wlan0
[49696.341667] DHD-MON: dhd_mon_if_open enter
[49696.345887] DHD-MON: dhd_mon_if_set_multicast_list enter, if name: mon.wlan0, matched if name wlan0
[49696.355647] DHD-MON: dhd_mon_if_set_multicast_list enter, if name: mon.wlan0, matched if name wlan0
[49696.545645]
[49696.545648] Dongle Host Driver, version 1.28.23 (r)
[49696.545652] Compiled in drivers/net/wireless/bcmdhd on Dec 23 2013 at 17:34:33
[49696.560384] CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23
[49696.568669] CFG80211-ERROR) wl_update_wiphybands : error get mimo_bw_cap (-23)
[49696.582597] wlan0: set promisc 0 failed
[49696.588023] wlan0: set promisc 0 failed
[49696.588779] CFG80211-ERROR) wl_cfg80211_set_channel : netdev_ifidx(7), chan_type(0) target channel(1)
[49696.590332] DHD-MON: dhd_mon_if_subif_start_xmit enter
[49696.590348] DHD-MON: dhd_mon_if_subif_start_xmit radiotap len (should be 14): 14
[49696.594083] CFG80211-ERROR) wl_cfg80211_parse_ies : No WPSIE in beacon
[49696.600922] CFG80211-ERROR) wl_cfg80211_hostapd_sec : No WPSIE in beacon


this is the output of hostap in open mode, this is the config.

this is with wpa2
Code: Select all
[49781.222547] DHD-MON: dhd_mon_if_subif_start_xmit enter
[49781.227758] DHD-MON: dhd_mon_if_subif_start_xmit radiotap len (should be 14): 14
[49781.680762] wlan0: set promisc 0 failed
[49781.681290] DHD-MON: dhd_mon_if_stop enter
[49783.509486] DHD-MON: dhd_add_monitor enter, if name: mon.wlan0
[49783.521531] DHD-MON: dhd_add_monitor net device returned: 0xe4f7f000
[49783.529083] DHD-MON: dhd_add_monitor found a matched net device, name wlan0
[49783.538404] DHD-MON: dhd_mon_if_open enter
[49783.542881] DHD-MON: dhd_mon_if_set_multicast_list enter, if name: mon.wlan0, matched if name wlan0
[49783.552114] DHD-MON: dhd_mon_if_set_multicast_list enter, if name: mon.wlan0, matched if name wlan0
[49783.625656]
[49783.625659] Dongle Host Driver, version 1.28.23 (r)
[49783.625664] Compiled in drivers/net/wireless/bcmdhd on Dec 23 2013 at 17:34:33
[49783.640440] CFGP2P-ERROR) wl_cfgp2p_supported : wl p2p error -23
[49783.648789] CFG80211-ERROR) wl_update_wiphybands : error get mimo_bw_cap (-23)
[49783.662921] wlan0: set promisc 0 failed
[49783.668170] wlan0: set promisc 0 failed
[49783.668806] CFG80211-ERROR) wl_cfg80211_set_channel : netdev_ifidx(7), chan_type(0) target channel(7)
[49783.798811] DHD-MON: dhd_mon_if_subif_start_xmit enter
[49783.803973] DHD-MON: dhd_mon_if_subif_start_xmit radiotap len (should be 14): 14
[49783.887909] CFG80211-ERROR) wl_cfg80211_parse_ies : No WPSIE in beacon
[49783.901022] CFG80211-ERROR) wl_cfg80211_hostapd_sec : No WPSIE in beacon



this is the output of hostap in wpa2 mode, this is the config.


I'd greatly appreciate any pointers :)
CruX
 
Posts: 68
Joined: Sun Oct 27, 2013 1:29 pm

Re: wandboard quad wifi ap mode

Postby Edward » Wed Dec 25, 2013 11:25 am

Nice! It's good to hear that you have some progress.

I also enable two extra flags in that Makefile
DHDCFLAGS += -DWL_ENABLE_P2P_IF -DWLP2P

If you didn't enable them, maybe you can give it a try.
Edward
 
Posts: 12
Joined: Wed Dec 18, 2013 8:57 am

Re: wandboard quad wifi ap mode

Postby CruX » Wed Dec 25, 2013 11:27 am

So you're the Edward from the patch :)

I'll give this a try and report back.

Thanks and happy holidays!
CruX

Edit:

Worked, nothing changed in regard to hostapd but iw list reports new tx and tx frame types:
Code: Select all
        Supported interface modes:
                 * managed
                 * AP
        software interface modes (can always be added):
        interface combinations are not supported
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * set_bss
                 * join_ibss
                 * set_pmksa
                 * del_pmksa
                 * flush_pmksa
                 * remain_on_channel
                 * frame
                 * set_wiphy_netns
                 * set_channel
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
CruX
 
Posts: 68
Joined: Sun Oct 27, 2013 1:29 pm

Re: wandboard quad wifi ap mode

Postby setti » Fri Jan 10, 2014 6:18 pm

Hi there, is there anything new in running the wandboard quad as AP with hostapd?
Im getting the following errors when starting hostapd:

Code: Select all
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
nl80211: Failed to add interface wlan0 into bridge br0: Operation not supported
nl80211 driver initialization failed.

This is my config:
Code: Select all
ssid=Test
wpa_passphrase=XXXXX
interface=wlan0
bridge=br0
auth_algs=3
channel=2
driver=nl80211
hw_mode=g
ieee80211n=1
wmm_enabled=1
country_code=DE
ieee80211d=1
ht_capab=[HT20][SHORT-GI-20]
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP


iw scanning shows AP nearby. So i guess wifi is working.
setti
 
Posts: 39
Joined: Fri Jan 10, 2014 6:15 pm

Re: wandboard quad wifi ap mode

Postby JohnW » Mon Jan 13, 2014 8:14 pm

Also, for those that have this working is that with with 3.0.35 kernel or the later versions? From what I gathered earlier, the required updates to support AP and adhoc modes were implemented in 3.6+ versions of the kernel.
JohnW
 
Posts: 86
Joined: Sat Sep 07, 2013 3:01 pm
Location: United States

Re: wandboard quad wifi ap mode

Postby CruX » Tue Jan 14, 2014 7:23 am

I'm glad to hear that you are interested in this, this should really help development :)

I am using the 3.0.35-4.1.0 kernel from wolfgar with the patch posted by tapani in this thread. The driver compiles, is loadable and I've got it to work with an unencrypted network (ping tested so far).
If you want to know more information, I'm also in #wandboard most of the time but you might as well just ask here.

Really looking forward to your findings :)

Cheers!
CruX
CruX
 
Posts: 68
Joined: Sun Oct 27, 2013 1:29 pm

Re: wandboard quad wifi ap mode

Postby Tapani » Tue Jan 14, 2014 10:06 am

Update: We've gotten the following instructions from the manufacturer to:
- follow the instructions in the README (and the %^$#^ moron sends the readme as a PNG!)
- use the included 'wl' tool (and the &^%$% moron sends an ARM binary ... softfp I presume)

we'll look at this eventually, but posting this here so anyone who is interested can try it out.
Attachments
README.png.gz
README ... as a PNG!?
(131.57 KiB) Downloaded 282 times
wl.gz
wl ARM binary
(221.27 KiB) Downloaded 185 times
Tapani
Site Admin
 
Posts: 705
Joined: Tue Aug 27, 2013 8:32 am

Re: wandboard quad wifi ap mode

Postby CruX » Tue Jan 14, 2014 10:45 am

Readme as PNG is unconventional :D

the wl binary executes on hardfp kernel, I don't know if its softfp though (if this is compatible).

I can't test it right now but I will as soon as I'm home!

Thanks!
CruX

Edit:
I was NOT able to put the wifi chip into ap mode using the steps provided in the readme.

After fooling around with hostap a bit more (tried hostap 1.1 and another config for 2.0 etc etc), I found this source and they seem to have a similiar problem. According to the cubieforums, the missing thing here is monitor mode as this is apparently needed for encryption (not sure about that). After googling a bit I found this modified bcm4329 driver but I have not gotten it to compile yet.

@tapani: Is your retailer aware of the actual problem here? (open works, encrypted does not).

Glad about any input!

Edit:
after trying to boot the board without brcmfmac and then trying to setup ap mode again I come to the same result: open mode works, as soon as you enable wpa/wpa2, it doesn't. There is no real error output from hostapd/dmesg...
Again, this is completely done with hostapd, the "wl" utility doesn't actually do anything (I can't get ap mode to work, can't even get it to scan for networks or something like that).
CruX
 
Posts: 68
Joined: Sun Oct 27, 2013 1:29 pm

Re: wandboard quad wifi ap mode

Postby CruX » Wed Jan 22, 2014 11:53 am

I think this does deserve a double-post :)

Using kernel 3.10.17 with its more up-to-data brcmfmac and the firmware tapani supplied, I was able to put up the wifi chip in WPA2-enabled AP mode and connect to it!

This was all done without the weird "wl" tool and without the bcmdhd driver!

There are still some errors on the command line, but the connection works (ping-tested to a android phone).

Cheers!
CruX

Edit:
Breaking news again!
Today I learned about the incredibly great project of backports. Using their buildsystem its actually possible to compile a brcmfmac from 3.10.27 and run it on 3.0.35. The so compiled version does support AP mode (with encryption) on 3.0.35!
I will post more precise instructions about what I did soon! (Archlinux ARM users MIGHT actually be able to enjoy a simple pkgbuild).

Edit:
Here is the pkgbuild. If you need instructions to reproduce this on other distros... go ahead and ask :)
I made a pullrequest to the archlinux repos, we'll see if it gets merged

Edit:
3.12 is buggy, if you have actual traffic (more than just ping) serial spits a lot of those:
Code: Select all
[ 5630.178929] brcmfmac: brcmf_sdio_buffrw: sg request length 964 is not 512 aligned

Updating to 3.13 fixed this issue.

Cheers!
CruX
 
Posts: 68
Joined: Sun Oct 27, 2013 1:29 pm

Re: wandboard quad wifi ap mode

Postby setti » Fri Jan 31, 2014 9:56 am

Hey all,

I thought the wandboard has a 5ghz wireless chipset on board? But it seems i cant set it in hostapd?
Crux are you running your hostapd in g or n mode?
setti
 
Posts: 39
Joined: Fri Jan 10, 2014 6:15 pm

PreviousNext

Return to Software - General

Who is online

Users browsing this forum: No registered users and 15 guests

cron