tiiuae / radio_hal

Generic Radio HAL for different wireless radio(Wi-Fi/BT/15.4)
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Add support for all Wi-Fi configuration file parameters #43

Open joenpera opened 2 years ago

joenpera commented 2 years ago

Add support for all configuration items in wifi_example.yaml.

Lines with preceding "+" needs attention:

debug: True
api_version: 3                  # interface version for future purposes
ssid: "gold"                # 0-32 octets, UTF-8, shlex.quote chars limiting
key: "1234567890"           # key for the network
+passphrase: todo_hexformat      # key for the network
enc: "sae"                      # encryption (none wep, wpa2, wpa3, sae)
+ap_mac: "00:11:22:33:44:55"     # bssid for mesh network
country: "fi"                   # Country code, sets tx power limits and supported channels
frequency: 2412                 # 5180 wifi channel frequency, depends on the country code and HW
bw: 20                          # 5/10/20/??
+preamble: "long"                # short/long
distance: 3000                  # distance (coverage-class fine tuning)
tx_power: 30                    # select 30dBm, HW and regulations limiting it correct level. Can be used to set lower dBm levels for testing purposes (e.g. 5dBm)
mode: "mesh"                    # mesh=mesh network, ap=debug hotspot
+type: "11s"                     # 11s or ibss

Configuration items are already collected to radio specific wifi_config - struct, but not yet used for radio configuration.

joenpera commented 2 years ago

46 bw, txpower, distance, enc, country(nl80211) support added for mesh

45 country code setting support added

[edited original message to reflect status]