Bring Up
Software Development Kits > Guide to Linux Porting
The configuration options for hostapd and wpa_supplicant are extensive. Certain options may also depend on compile time configuration. This guide aims to provide a minimal bring up of the HaLow interface, and recommend a developer look to the hostapd documentation for detailed descriptions of the configuration available.
Interface
Before bringing up an access point, ensure the dot11ah and morse kernel modules are inserted.
insmod dot11ah.ko
insmod morse.ko country=AU
A new phy and associated network device (eg wlan0) should now be registered with the kernel.
Bring the interface up with:
ifconfig wlan0 192.168.1.1 up
Adjust the IP address above as required, or remove it if starting a DHCP client daemon.
There are a number of module parameters supported by the Morse Micro driver. The full list can be found by querying the driver with modinfo or by inspecting the les in sysfs. However, the following module parameters are often beneficial for testing:
- country - adjust the defaultregion for which the device should operate
- spi_clock_speed - controls the SPI clock speed requested by the driver;
-
test_mode - execute one of the following test modes:
- 0 - DISABLED - normal boot
- 1 - DOWNLOAD_ONLY - downloads the firmware to MM6108
- 2 - DOWNLOAD_AND_GET_HOST_TBL_PTR - downloads the firmware to MM6108 and get the location of the host table
- 3 - GET_HOST_TBL_PTR_ONLY - only get the location of the host table
- 4 - RESET -reset MM6108
- 5 - BUS - perform block reads and writes to profile the communication bus.
Access Point
Insert the Morse Micro driver, then start hostapd_s1g with the minimal config file attached:
hostapd_s1g -t -B -s hostapd.conf
hostapd.conf:
ctrl_interface=/var/run/hostapd_s1g
interface=wlan0
driver=nl80211
hw_mode=a
ieee80211ah=1
channel=44
op_class=71
country_code=AU
s1g_prim_chwidth=1
s1g_prim_1mhz_chan_index=0
ssid=MorseMicro
beacon_int=100
dtim_period=1
ap_max_inactivity=65536
s1g_capab=[SHORT-GI-ALL]
wpa=2
wpa_key_mgmt=SAE
rsn_pairwise=CCMP
sae_password=12345678
ieee80211w=2
wnm_sleep_mode=1
sae_pwe=1
Station
Insert the Morse Micro driver, then start wpa_supplicant_s1g with the minimal config file attached:
wpa_supplicant_s1g -t -D nl80211 -s -i wlan0 -c
wpa_supplicant.conf -B
wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant_s1g
#update_config=1
pmf=2
sae_pwe=1
network={
ssid="MorseMicro"
key_mgmt=SAE
pairwise=CCMP
psk="12345678"
}