# voxl-wifi softap issues

Source: https://forum.modalai.com/topic/1381/voxl-wifi-softap-issues
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Posted: 2022-09-27 08:34:03 UTC by Philemon Benner
Replies: 2 · Views: 1238

## Philemon Benner · 2022-09-27 08:34:03 UTC

Hey,
i'm currently working on setting my voxl to softap mode. While doing that i encountered some issues that i wanted to let u know.

Voxl: Voxl 1
Voxl System Image: 3.8.0
Voxl Suite: 0.7.0

So when i'm trying to set the voxl into softap factory mode i'm getting the following error:
```
voxl-wifi -f
```
Output:
![voxl-hwscan-not-found.png](https://forum.modalai.com/assets/uploads/files/1664266918034-voxl-hwscan-not-found.png) 
Seems like voxl-hwscan doesn't exist anymore in the new system-image ?

Also when i tried editing the default password in:
/usr/bin/voxl-wifi l. 5-7
```
DEFAULT_SSID="VOXL-BLA"
DEFAULT_PASS="somesecretpassword"
DEFAULT_COUNTRY_CODE="mycountrycode"
```
it will still use the standart password 1234567890. So i had a look at the hostapd.conf,
and it seems like there also is a  wpa_passphrase var at line 997 and a country code at line 99. Modifying voxl-wifi in line 54 to:
```
function create_softap_conf_file () {
	echo "editing ${hostapd_conf_file} for softap mode, ssid is: ${ssid}"
	sed -i "/^ssid=/c\ssid=${ssid}" ${hostapd_conf_file}
	sed -i "/^wpa_passphrase=/c\wpa_passphrase=${DEFAULT_PASS}" ${hostapd_conf_file}
	sed -i "/^country_code=/c\country_code=${DEFAULT_COUNTRY_CODE}" ${hostapd_conf_file}
	echo "creating new $conf_file for softap mode, ssid is: ${ssid}"
	cat > ${conf_file} << EOF1
country=${country_code}
```
seems to work. Maybe you could include that in future releases, or let me know if i did something nasty.

## Reply by Philemon Benner · 2022-09-27 08:40:52 UTC

Also a list of country codes conforming the (ISO/IEC 3166-1) of the hostapd.conf:
Could be put into the print_usage:
```
echo "List of available Country Codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes"
```

## Reply by tom (ModalAI staff) · 2022-09-27 19:09:17 UTC

@Philemon-Benner This is where the voxl-wifi source code lives for VOXL1: https://gitlab.com/voxl-public/voxl-sdk/utilities/apq8096-system-tweaks/-/blob/dev/scripts/voxl-wifi

Since you've already put in effort toward the resolution you could attempt to fork this repo, make your suggested tweaks and create a merge request so that the team could take a look!

Otherwise it may take a little bit longer for the team to take a chance to look into the bug
