RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
2. Remove default gw entry from routing table since WAN access will be through backhaul connection.
route del default gw |
3. Copy below content to /nvram/EasymeshCfg.json file.
...
6. Remove the below files from
cd /etc/systemd/system//multi-user.target.wants/ rm ieee1905_em_ctrl.service rm em_ctrl |
7. copy below contents to /lib/systemd/system/ieee1905_em_agent.service
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[Unit]
Description=ieee1905 EasyMesh Remote Agent service
After=onewifi.service
[Service]
Type=forking
WorkingDirectory=/usr/ccsp/EasyMesh
ExecStartPre=/bin/sh -c '/usr/ccsp/EasyMesh/setup_ext_pre.sh'
ExecStartPre=/bin/sh -c 'if [ ! -e "/sys/class/net/eth1_virt_peer/address" ]; then `/usr/ccsp/EasyMesh/setup_veth_for_em.sh brlan0 eth1 false`;fi'
ExecStartPre=/bin/sh -c 'sleep 5'
ExecStart=/bin/sh -c '/usr/bin/ieee1905 -f ieee1905::al_sap=trace,ieee1905::cmdu_handler=trace,ieee1905::cmdu_proxy=trace,ieee1905::cmdu_observer=trace -i eth1_virt_peer >> /tmp/ieee1905_agent_log.txt &'
Restart=always
[Install]
WantedBy=multi-user.target |
8. copy below contents to /lib/systemd/system/em_agent.service
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
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
11. Wait for few minutes( for Agent to propagate SSID information from Controller to OneWifi in Extender1) and then check
...