Skip to content

Commit

Permalink
samples: wifi: scan: Update Readme file
Browse files Browse the repository at this point in the history
Add output of scan results based on
frequency bands, specific ssid(s),
speific channel(s), passive scan and
active scan.

Signed-off-by: Triveni Danda <[email protected]>
  • Loading branch information
D-Triveni authored and rlubos committed Sep 1, 2023
1 parent f4745fd commit 9383280
Showing 1 changed file with 73 additions and 6 deletions.
79 changes: 73 additions & 6 deletions samples/wifi/scan/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ The sample supports the following development kits:
Overview
********

This sample can perform Wi-Fi scan operations in the 2.4GHz and 5GHz bands.
The default scan type is active scan.
The sample demonstrates Wi-Fi scan operations in the 2.4 GHz and 5 GHz bands.
The default scan type is active.
However, you can configure the scan type to be either active or passive.
Also, you can perform scan operation based on

* Frequency band(s)
* Specific SSID(s)
* Specific channel(s)

Using this sample, the development kit can scan for available access points in :abbr:`STA (Station)` mode.

Expand All @@ -30,23 +35,26 @@ Configuration

|config|

Configuration options
=====================

Select the scan type to be used by the sample.

.. note::
You can also use ``menuconfig`` to enable the ``Scan type`` option.

See :ref:`zephyr:menuconfig` in the Zephyr documentation for instructions on how to run ``menuconfig``.

The following sample-specific Kconfig option is used in this sample (located in :file:`samples/wifi/scan/Kconfig`):
Configuration options
=====================

The following sample-specific Kconfig option is used in this sample (located in :file:`samples/wifi/scan/Kconfig`) :

.. _CONFIG_WIFI_SCAN_TYPE_SELECT:

CONFIG_WIFI_SCAN_TYPE_SELECT
This option sets the scan type to be used by the sample.

.. options-from-kconfig::
:show-type:

Building and running
********************

Expand Down Expand Up @@ -122,3 +130,62 @@ Testing
5 | pqrst 5 | 1 | -65 | WPA/WPA2 | xx:xx:xx:xx:xx:xx
6 | AZBYCXD 7 | 1 | -41 | WPA/WPA2 | yy:yy:yy:yy:yy:yy
Scan request done
* Default (Active) scan results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | 0 | 11 | -39 | Open | C2:A5:11:A2:B1:E2
2 | abcdefg 7 | 11 | -39 | Open | BC:A5:11:A2:B1:E2
3 | hijklmno 8 | 48 | -43 | Open | 00:22:CF:E6:AE:99
Scan request done
* Passive scan results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | 0 | 11 | -39 | Open | C2:A5:11:A2:B1:E2
2 | abcdefg 7 | 11 | -39 | Open | BC:A5:11:A2:B1:E2
3 | hijklmno 8 | 48 | -43 | Open | 00:22:CF:E6:AE:99
Scan request done
* 2.4 GHz scan only results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | abcdefg 7 | 11 | -39 | Open | BC:A5:11:A2:B1:E2
Scan request done
* 5 GHz scan only results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | pqrst 5 | 48 | -43 | Open | 00:22:CF:E6:AE:99
Scan request done
* SSID based scan results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | pqrst 5 | 48 | -43 | Open | 00:22:CF:E6:AE:99
Scan request done
* Channel based scan results:

.. code-block:: console
Scan requested
Num | SSID (len) | Chan | RSSI | Security | BSSID
1 | abcdefg 7 | 11 | -39 | Open | BC:A5:11:A2:B1:E2
1 | pqrst 5 | 48 | -43 | Open | 00:22:CF:E6:AE:99
Scan request done

0 comments on commit 9383280

Please sign in to comment.