www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Setup 5 GHz AC with ZS and wle600vx or wle900vx

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Wireless Networks
View previous topic :: View next topic  
Author Message
iulyb



Joined: 02 Jun 2016
Posts: 100

PostPosted: Mon Oct 24, 2016 4:53 am    Post subject: Setup 5 GHz AC with ZS and wle600vx or wle900vx Reply with quote

Hi,
I finally was enable to setup ZS to work with wle600vx in AC mode. (5GH)

This was not a simple task, it requires a few things.
- ath10k - fixed by adding board.bin firmware
- a feature patch that will add an option for AC option
- a new version for hostapd. (I compiled 2.5)

Until setup can be integrated with a feature patch, a more hacker type approach has to be used.


1) Bring the new interface alive, for this we need to create a holder for firmware, that needs to be rw.
Code:
mkdir -p /DB/opt/
cp -ar /lib/firmware  /DB/opt/
cd /DB/opt/firmware/ath10k/QCA988X/hw2.0/
wget http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/ath10k/QCA988X/hw2.0/board.bin
wget http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/ath10k/QCA988X/hw2.0/firmware-5.bin


Now that we created a persistent updated firmware we need to mount it then test it.
Code:
mount -o bind /DB/opt/firmware /lib/firmware
rmmod ath10k_pci
rmmod ath10k_core
modprobe ath10k_core
modprobe ath10k_pci
iw wlan0 info


This assuming that wlan0 if is the only interface or wlan1 if there is another one and so on.
If everything is ok and there is some output we can go further...
Add this script to preboot script except last info command

2) Create a config stub.
- run wireless network setup (wifi manager). You should see wlan0 or wlan1 related to the added interface. If you don't see it then you need to go back to step 1
- setup a new SSID and and setup channel. If you want to be able to pick a 5G you will need to apply the code from here.
https://github.com/jb68/zeroshell-ui/commit/fba3b6b3519983454c33aa878f17847b54d6a3e3
However this is not necessary because the interfece may not start due to other issues. We will address this later, just pick n and a channel from 2g for now.
- Compile ( http://w1.fi/releases/ ) or download a new binary for hostapd > 2.3. I added a binary for 2.5 here http://jb68.com/pkg/hostapd-2.5-ZS-3.6.0_i686
Code:
cd /DB/opt
mkdir bin && cd bin
wget http://jb68.com/pkg/hostapd-2.5-ZS-3.6.0_i686
chmod +x hostapd-2.5-ZS-3.6.0_i686
ln -s hostapd-2.5-ZS-3.6.0_i686 hostapd

- Create a new config for the new hostapd based on the original one and add new AC features. I end up using a config that I found on the internet. ( https://gist.github.com/larstobi/8b7000b4263106a0bc8e ) . I will put my config to have a reference.

- test it ./hostapd -B -ddd your.config.file

3) Put everything together on the preboot and postboot scripts. (didn't do this yet)
4) Integrate into ZS distro. (here still needs a lot of work)

Note: Some attention has to be focused on the channel setup. If 40M band channel are enabled the hostapd will scan first for interference. Also in NA you can have 30 db (1W) Tx power on the upper channels.
Ref: Channel planning: http://www.revolutionwifi.net/revolutionwifi/2013/03/80211ac-channel-planning.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Wireless Networks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group