Setup 5 GHz?

Following the “Change the access point settings” on the tutorial. I modified the hostapd.conf by commenting the lines for 2.4 GHz and uncommenting the 5 GHz and saving. I restarted the access point and the 5 GHz network does not show up.

How to I enable the 5 GHz band?

Are you still able to log in to the Rover? If so, show me the content of this file:

/etc/hostapd/hostapd.conf

Also, show me the output of these commands:

systemctl status hostapd
journalctl -b -u leo

Hi Błażej,

Here are the contents of hostapd.conf

> # https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
> 
> ssid=LeoRover-ffec
> wpa_passphrase=password
> 
> country_code=US
> 
> interface=wlan_ext
> driver=nl80211
> 
> wpa=2
> wpa_key_mgmt=WPA-PSK
> rsn_pairwise=CCMP
> 
> logger_syslog=-1
> logger_syslog_level=0
> logger_stdout=-1
> logger_stdout_level=0
> 
> wmm_enabled=1
> ieee80211n=1
> ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
> 
> # 2.4 GHz
> hw_mode=g
> channel=1
> 
> # 5 GHz
> # hw_mode=a
> # ieee80211ac=1
> # channel=36
> # vht_oper_chwidth=1
> # vht_capab=[MAX-MPDU-11454][MAX-MPDU-11454][SU-BEAMFORMEE][HTC-VHT]
> # vht_oper_centr_freq_seg0_idx=42

For the output of systemctl status hostapd and for journalctl -b -u leo (found inside this quote box)

hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authent
   Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset:
  Drop-In: /etc/systemd/system/hostapd.service.d
           └─wlan_ext.conf
   Active: active (running) since Thu 2021-09-23 00:01:11 BST; 58min ago
  Process: 1360 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS
 Main PID: 1389 (hostapd)
    Tasks: 1 (limit: 4137)
   CGroup: /system.slice/hostapd.service
           └─1389 /usr/sbin/hostapd -P /run/hostapd.pid -B /etc/hostapd/hostapd.

Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: event 1
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: start au
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X:
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X:
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 RADIUS: start
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: pairwise
lines 1-21/21 (END)...skipping...
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
   Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/hostapd.service.d
           └─wlan_ext.conf
   Active: active (running) since Thu 2021-09-23 00:01:11 BST; 58min ago
  Process: 1360 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF}
 Main PID: 1389 (hostapd)
    Tasks: 1 (limit: 4137)
   CGroup: /system.slice/hostapd.service
           └─1389 /usr/sbin/hostapd -P /run/hostapd.pid -B /etc/hostapd/hostapd.conf

Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: event 1 notification
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: start authentication
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X: unauthorizing
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending 1/4 msg of 4-W
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received EAPOL-Key fra
Sep 23 00:01:25 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending 3/4 msg of 4-W
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received EAPOL-Key fra
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X: authorizing po
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 RADIUS: starting accounting
Sep 23 00:01:26 leo hostapd[1389]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: pairwise key handshake
~~




For journalctl -b -u leo



~~
-- Logs begin at Mon 2020-06-29 17:42:58 BST, end at Thu 2021-09-23 00:59:11 BST. --
Sep 23 00:01:17 leo systemd[1]: Started "leo bringup service".
Sep 23 00:01:20 leo leo-start[1498]: xacro: in-order processing became default in ROS Melodic.
Sep 23 00:01:21 leo leo-start[1498]: [ WARN] [1632351681.938447825]: The 'state_publisher' exe
Sep 23 00:01:22 leo leo-start[1498]: [ WARN] [1632351682.773768399]: Camera calibration file /
Sep 23 00:01:25 leo leo-start[1498]: [ERROR] [1632351685.964648]: Tried to publish before conf
Sep 23 00:54:10 leo leo-start[1498]: [ERROR] [1632354850.988749]: Lost sync with device, resta
Sep 23 00:54:11 leo leo-start[1498]: [ WARN] [1632354851.125037240]: Received JointState is 31


~~

Sorry, I made a mistake, I wanted the logs from hostapd:

journalctl --no-pager -b -u hostapd

The hostapd.conf file does not seem to be modified by you. Are you sure you saved you changes?

It’s not mentioned in the guide but please make sure you have other way to connect to the robot before changing the AP settings.

No problem I have that below. Originally I thought it was as straightforward as commenting the 2.4 Ghz line and uncommenting the 5 Ghz from hostapd. This was not the case… I had a disabled Leo for a few days before I could change the hostapd back.

-- Logs begin at Mon 2020-06-29 17:45:18 BST, end at Fri 2021-09-24 13:19:22 BST. --
Sep 24 05:07:46 leo systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator...
Sep 24 05:07:46 leo hostapd[1348]: Configuration file: /etc/hostapd/hostapd.conf
Sep 24 05:07:47 leo hostapd[1348]: wlan_ext: interface state UNINITIALIZED->COUNTRY_UPDATE
Sep 24 05:07:47 leo systemd[1]: Started Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.11: authentication OK (open system)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 MLME: MLME-AUTHENTICATE.indication(10:4a:7d:49:5f:34, OPEN_SYSTEM)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 MLME: MLME-DELETEKEYS.request(10:4a:7d:49:5f:34)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.11: association OK (aid 1)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.11: authenticated
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.11: associated (aid 1)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 MLME: MLME-ASSOCIATE.indication(10:4a:7d:49:5f:34)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 MLME: MLME-DELETEKEYS.request(10:4a:7d:49:5f:34)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.11: binding station to interface 'wlan_ext'
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: event 1 notification
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: start authentication
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X: unauthorizing port
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending 1/4 msg of 4-Way Handshake
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received EAPOL-Key frame (2/4 Pairwise)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: sending 3/4 msg of 4-Way Handshake
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: received EAPOL-Key frame (4/4 Pairwise)
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 IEEE 802.1X: authorizing port
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 RADIUS: starting accounting session C11E850469AFFEF6
Sep 24 13:17:33 leo hostapd[1382]: wlan_ext: STA 10:4a:7d:49:5f:34 WPA: pairwise key handshake completed (RSN)

Before changing the hostapd.conf file again, make sure you have other way to connect to the Rover in case the Access Point becomes unreachable.

For example: Connect the rover to local network, then check its ip with the ip address command. You should be able to SSH to the Rover from a computer connected to the same network.

Once you’ve done that, modify the hostapd file by commenting out the lines below 2.4 GHz section and uncommenting the lines under 5 GHz section.

The file should look like this:

# https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf

ssid=LeoRover-ffec
wpa_passphrase=password

country_code=US

interface=wlan_ext
driver=nl80211

wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
 
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0

wmm_enabled=1
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
 
# 2.4 GHz
# hw_mode=g
# channel=1
 
# 5 GHz
hw_mode=a
ieee80211ac=1
channel=36
vht_oper_chwidth=1
vht_capab=[MAX-MPDU-11454][MAX-MPDU-11454][SU-BEAMFORMEE][HTC-VHT]
vht_oper_centr_freq_seg0_idx=42

Now, restart the hostapd service:

sudo systemctl restart hostapd

and check the logs again:

journalctl --no-pager -b -u hostapd