I am trying to create wifi AP on jetson tx1 with Rel 28.2 i.e. ubuntu16.04.
I am able to see AP in SSID list but not able to connect to it.
Also command ‘hostapd -B /etc/hostapd/hostapd.conf’ show following output Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn’t started
1. Turn OFF Wi-Fi (Pre-requisite)
2. Connect ethernet cable to DUT to give it internet source
3. Turn ON wireless hotspot on DUT using GUI interface
(i) To allow SSID broadcasts, the following bcmdhd module paramter should be set: op_mode=2. Set this in two ways:
a) manually via /sys/module/bcmdhd/paramters/op_mode node
->echo 2 > /sys/module/bcmdhd/parameters/op_mode
b)or to set the parameter automatically on boot, add a bcmdhd.conf (module conf fine, the name may change) file to /etc/modprobe.d with this line:
options bcmdhd op_mode=2
(ii) Create a new connection in "Network Connection" settings using GUI
a) Click Network icon on GUI -> Edit-connections -> click "Add" button
b) Choose Wi-Fi from dropdown
c) In Edit window enter custom "Connection name", SSID, select device MAC address (primarliy of wla0)
d) Under WiFi-Security select WPA and WPA2 Personal and give a passcode
e) Under IPv4 Setting select "Shared to other computers"
f) In newly created system-connection file for your hotspot, change mode=ap
For e.g. sudo vim /etc/NetworkManager/system-connections/
# and set mode=ap in the given file
(iii) Turn ON Wi-Fi, to enable hotspot
(iv) Your hotspot is ready to use now
4. Connect other (client) device to this hotspot and access network using it
5. Repeat above for 2-3 iterations and have (client) device connected to this hotspot for sometime
Thanks for the reply.
But I am more interested in creating wifi AP from command line.
I have disabled HDMI, so can not configure wifi AP from GUI.
Also executing “echo 2 > /sys/module/bcmdhd/parameters/op_mode” give me error “No such file or directory”
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$ lsmod
Module Size Used by
bcmdhd 7622868 0
bluedroid_pm 13308 0
nvidia@tegra-ubuntu:~$
Following is the output of rfkill list
nvidia@tegra-ubuntu:~$
nvidia@tegra-ubuntu:~$ rfkill list
0: bluedroid_pm: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
nvidia@tegra-ubuntu:~$
I could see the path you have mentioned.
I think issue with running “echo 2 > /sys/module/bcmdhd/parameters/op_mode” from rc.local in ubuntu 16.04 is that, service rc.local is running way before path “/sys/module/bcmdhd/parameters/op_mode” could exist during boot.
I could manually run echo command once system boots up, but that does not help in creating AP.
I also tried another option of setting op_mode parameter through “/etc/modprobe.d/bcmdhd.conf” file
But that also not working.
Has anyone verified steps on Ubuntu 16.04 on tx1? they work perfectly fine with ubuntu 14.04.
I am building the kernel and rootfs, manually. Not using Jetpack directly.
I even tried setting op_mode=2 then using hostapd to setup AP. I followed below steps but ladnaded with following error.
sudo nmcli radio wifi off
sudo su -c “echo 2 > /sys/module/bcmdhd/parameters/op_mode”
sudo nmcli radio wifi on
sudo ifconfig wlan0 192.168.1.1 up
sudo hostapd -d /etc/hostapd/hostapd.conf
Your script helped me to some extent.
Now i could set mode to AP by running your script first and then running following commands
sudo nmcli radio wifi off
sudo su -c “echo 2 > /sys/module/bcmdhd/parameters/op_mode”
sudo nmcli radio wifi on
sudo ifconfig wlan0 192.168.1.1 up
sudo hostapd -d /etc/hostapd/hostapd.conf
But i could not connect to wifi AP, it shows on my mobile phone but fails to get IP.
Also wifi SSID does not show up in laptop.
nvidia@tegra-ubuntu:~$ iw wlan0 info
Interface wlan0
ifindex 7
wdev 0x1
addr 00:90:4c:16:70:01
ssid Tegra-WLAN
type AP
wiphy 0
If some of your devices are able to see the AP while others cannot, please check if the wifi is running in a band that some devices cannot access.
As for the IP, do you install any dhcp server on your tegra? Could you try to manually set your IP on the device(phone) and see if tegra is able to ping it?