RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/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.
|
13. Wait for few minutes( for Agent to propagate SSID information from Controller to OneWifi in Extender1) and then check
1214. Set static IP for brlan0 interface in Extender1
Code Block | ||
---|---|---|
| ||
ifconfig brlan0 10.0.0.215 netmask 255.255.255.0 up |
1315. Test the connectivity to EM-Controller through backhaul
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[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 | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/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 | ||
---|---|---|
| ||
iw dev wifi0.1 info |
912. Verify mesh backhaul connection in Extender1 side as well.
Code Block | ||
---|---|---|
| ||
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
1214. Set static IP for brlan0 interface in Extender2
Code Block | ||
---|---|---|
| ||
ifconfig brlan0 10.0.0.210 netmask 255.255.255.0 up |
1315. Test the connectivity to EM-Controller through backhaul
...