Versions Compared

Key

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

...

Basic wifi info

Process Status

Code Block
languagebash
titleProcess
root@Filogic-GW:~# systemctl status onewifi
* onewifi.service - Cosa service
     Loaded: loaded (8;;file://Filogic-GW/lib/systemd/system/onewifi.service/lib/systemd/system/onewifi.service8;;; static)
     Active: active (running) since Mon 2024-10-28 07:42:12 UTC; 1min 45s ago
TriggeredBy: * filogicwifiinitialized.path
    Process: 4181 ExecStartPre=/bin/sh /usr/ccsp/wifi/onewifi_pre_start.sh (code=exited, status=0/SUCCESS)
    Process: 4228 ExecStart=/usr/bin/OneWifi -subsys $Subsys (code=exited, status=0/SUCCESS)
   Main PID: 4419 (OneWifi)
     CGroup: /system.slice/onewifi.service
             |- 4419 /usr/bin/OneWifi -subsys eRT.
             `- 4567 /var/tmp/wifidb-server /opt/secure/wifi/rdkb-wifi.db --remote=punix:/var/tmp/wifidb.sock --unixctl=/var/tmp/wifi.ctl --lh

Notice: journal has been rotated since unit was started, output may be incomplete.


wifi status 

Code Block
languagebash
titlewifi info
root@Filogic-GW:~# iw dev 
phy#1
        Interface wifi1
                ifindex 18
                wdev 0x100000001
                addr 00:0c:43:26:60:11
                type AP
                txpower 0.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                        0       0       0       0       0       0       0       0               0
phy#0
        Interface wifi0
                ifindex 17
                wdev 0x1
                addr 00:0c:43:26:60:10
                ssid BPI_RDKB-AP0
                type AP
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 27.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                        0       0       0       0       0       0       0       0               0
root@Filogic-GW:~# ifconfig wifi0
wifi0     Link encap:Ethernet  HWaddr 00:0C:43:26:60:10  
          inet6 addr: fe80::20c:43ff:fe26:6010/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:11520 (11.2 KiB)

root@Filogic-GW:~# 


Logs

Test Cases

S.NOWiFi Test Cases validated on
1OneWifi systemd service should be RUNNING
2OneWifi core files should not be created in /tmp folder
3Wireless interfaces should be UP and RUNNING (i,e wifi0)
4wifi0 interfaces should be mapped under brlan0 (check by using 'brctl show' or 'ovs-vsctl show')
52G SSIDs should be broadcasted  (check by using iw dev)
6Able to connect default 2G SSIDs 
7CaptivePortal page should be appeared when we connect with the default SSID
8Able to change default 2G SSIDs via captiveportal
9Able to connect 2G  with updated SSIDs
10Wireless connected clients should get internet through router
11Able to launch WebUI in wireless connected client
12WiFi DM information should be persistent across all reboots
13Webconfig validation for privatewifi subdoc through Webconfig UI
14Able to  edit WiFi information in WebUI under WiFi tab
15Able to get/set wifi DM parameters via dmcli
16Able to get/set wifi DM parameters via WebPA

...