Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlesetup_ext_pre
collapsetrue
#!/bin/sh

#Ensure onewifi is up and running
while [ ! -e /tmp/wifi_initialized ] && [ ! -e /tmp/wifi_dml_complete ] ; 
do   
   sleep 1; 
done

#Ensure backhaul connectivity is established
al_mac_addr=`cat /nvram/EasymeshCfg.json | grep AL_MAC_ADDR  | cut -d '"' -f4`
channel_exists=`iw dev | grep $al_mac_addr  -A 4 | grep channel | wc -l`
ssid_exists=`iw dev | grep $al_mac_addr -A 4 | grep ssid | wc -l`

while [ "$channel_exists" != 1 ] && [ "$ssid_exists" != 1 ] ;
do
  sleep 1;
  channel_exists=`iw dev | grep $al_mac_addr  -A 4 | grep channel | wc -l`
  ssid_exists=`iw dev | grep $al_mac_addr -A 4 | grep ssid | wc -l`
done

10. Reboot the device

After reboot,

11.Ensure mesh backhaul connectivity is established over 5G through wifi1.1 interface.

iw dev wifi1.1 info

12. Verify mesh backhaul connection in EM-Contrller side as well.

iw dev wifi1.1.sta<i> info
iw dev wifi1.1.sta<i> station dump ## This command gives information on connected client ie Extender1.

13. Wait for few minutes( for Agent to propagate SSID information from Controller to OneWifi in Extender1) and then check

  • Check all configured VAPs should be up and running with "iw dev" command
  • VAPs should be broadcasting default EasyMesh SSIDS (ie private_ssid, mesh_backhaul)

1214. Set static IP for brlan0 interface in Extender1

Code Block
languagebash
ifconfig brlan0 10.0.0.215 netmask 255.255.255.0 up

1315. Test the connectivity to EM-Controller through backhaul

...

Code Block
languagebash
titleExt2 em_agent
collapsetrue
[Unit]
Description=EasyMesh Agent service
After=onewifi.service ieee1905_em_agent.service
 
[Service]
Type=forking
WorkingDirectory=/usr/ccsp/EasyMesh
ExecStartPre=/bin/sh -c 'sleep 30'
ExecStartPre=/bin/sh -c '/usr/ccsp/EasyMesh/setup_ext_pre.sh'
ExecStart=/bin/sh -c '/usr/bin/onewifi_em_agent >> /tmp/em_agent.log &'
Restart=always
 
 
[Install]
WantedBy=multi-user.target

9. copy below contents to /usr/ccsp/EasyMesh/setup_ext_pre.sh and file permission should be 755

Code Block
languagebash
titleExt2 setup_ext_pre
collapsetrue
#!/bin/sh
 
#Ensure onewifi is up and running
while [ ! -e /tmp/wifi_initialized ] && [ ! -e /tmp/wifi_dml_complete ] ;
do  
   sleep 1;
done
 
#Ensure backhaul connectivity is established
al_mac_addr=`cat /nvram/EasymeshCfg.json | grep AL_MAC_ADDR  | cut -d '"' -f4`
channel_exists=`iw dev | grep $al_mac_addr  -A 4 | grep channel | wc -l`
ssid_exists=`iw dev | grep $al_mac_addr -A 4 | grep ssid | wc -l`
 
while [ "$channel_exists" != 1 ] && [ "$ssid_exists" != 1 ] ;
do
  sleep 1;
  channel_exists=`iw dev | grep $al_mac_addr  -A 4 | grep channel | wc -l`
  ssid_exists=`iw dev | grep $al_mac_addr -A 4 | grep ssid | wc -l`
done

10. Reboot the device

After reboot,

11. Ensure mesh backhaul connectivity is established over 2.4G through wifi0.1 interface.

Code Block
languagebash
iw dev wifi0.1 info

912. Verify mesh backhaul connection in Extender1 side as well.

Code Block
languagebash
iw dev wifi0.1.stasta<i> info
iw dev wifi0.1.stasta<i> station dump ## This command gives information on connected client ie Extender2.


1113. Wait for few minutes( for Agent to propagate SSID information from Controller to OneWifi in Extender2) and then check

  • Check all configured VAPs should be up and running with "iw dev" command
  • VAPs should be broadcasting default EasyMesh SSIDS (ie private_ssid, mesh_backhaul)

1214. Set static IP for brlan0 interface in Extender2

Code Block
languagebash
ifconfig brlan0 10.0.0.210 netmask 255.255.255.0 up

1315. Test the connectivity to EM-Controller through backhaul

...