linux-wifi-hotspot icon indicating copy to clipboard operation
linux-wifi-hotspot copied to clipboard

Not Working on OpenSUSE Tumbleweed

Open azisnaufal opened this issue 3 years ago • 3 comments

I don't really know how to explain it. But when the wifi hotspot is started, it just show it is runnig at PID x.

Here is the log:

oazisn@localhost:~/Applications/linux-wifi-hotspot$ wihotspot

(wihotspot-gui:10013): Gtk-WARNING **: 09:44:58.378: gtk_widget_size_allocate(): attempt to allocate widget with width 757 and height -4

(wihotspot-gui:10013): Gtk-WARNING **: 09:44:58.379: gtk_widget_size_allocate(): attempt to allocate widget with width 94 and height -1 pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 2.4 -c 1 Config options written to '/etc/wh.config' Trying to kill create_ap instance associated with 10099... pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config -c 1 Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 1, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 1, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 5 Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 36, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 5 -c 161 Config options written to '/etc/wh.config' Trying to kill create_ap instance associated with 12460...

Here is the screenshot of wifi hostpot: image

Here is what ps ax tell about create_ap:

oazisn@localhost:~/Applications/linux-wifi-hotspot$ ps ax | grep create_ap 10099 pts/1 Z+ 0:00 [create_ap] 12460 pts/1 Z+ 0:00 [create_ap] 15326 pts/1 Z+ 0:00 [create_ap] 15919 pts/2 S+ 0:00 grep --color=auto create_ap oazisn@localhost:~/Applications/linux-wifi-hotspot$

What if i run create_ap manually?

oazisn@localhost:~/Applications/linux-wifi-hotspot$ pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --freq-band 5 -c 161 Config dir: /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z PID: 13138 Network Manager found, set ap0 as unmanaged device... DONE Custom frequency band set with 5Mhz with channel 161 Creating a virtual WiFi interface... ap0 created. Sharing Internet using method: nat Setting /usr/sbin/dnsmasq to complain mode. hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z/hostapd_ctrl Configuration file: /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z/hostapd.conf Using interface ap0 with hwaddr f8:ac:65:26:ae:c7 and ssid "KantinSebelah" ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: authenticated ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: associated (aid 1) ap0: AP-STA-CONNECTED d0:9c:7a:1d:3d:d8 ap0: STA d0:9c:7a:1d:3d:d8 RADIUS: starting accounting session 2F84CC9F458481D9 ap0: STA d0:9c:7a:1d:3d:d8 WPA: pairwise key handshake completed (RSN)

The wifi is accessibly at my phone.

azisnaufal avatar Nov 04 '20 02:11 azisnaufal

Hi, Do you mean creating AP manually works with 5Ghz band right?

Did you check with 2.4Ghz band? If not can you check that too?

On Wed, Nov 4, 2020, 08:24 Azis Naufal [email protected] wrote:

I don't really know how to explain it. But when the wifi hotspot is started, it just show it is runnig at PID x.

Here is the log:

oazisn@localhost:~/Applications/linux-wifi-hotspot$ wihotspot

(wihotspot-gui:10013): Gtk-WARNING **: 09:44:58.378: gtk_widget_size_allocate(): attempt to allocate widget with width 757 and height -4

(wihotspot-gui:10013): Gtk-WARNING **: 09:44:58.379: gtk_widget_size_allocate(): attempt to allocate widget with width 94 and height -1 pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 2.4 -c 1 Config options written to '/etc/wh.config' Trying to kill create_ap instance associated with 10099... pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config -c 1 Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 1, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 1, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 5 Config options written to '/etc/wh.config'

ERROR: Your adapter can not transmit to channel 36, frequency band 5GHz.

Command not found or exited with error status pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 5 -c 161 Config options written to '/etc/wh.config' Trying to kill create_ap instance associated with 12460...

Here is the screenshot of wifi hostpot: [image: image] https://user-images.githubusercontent.com/2264036/98063767-5f19af80-1e83-11eb-813a-3044dd05dd71.png

Here is what ps ax tell about create_ap:

oazisn@localhost:/Applications/linux-wifi-hotspot$ ps ax | grep create_ap 10099 pts/1 Z+ 0:00 [create_ap] 12460 pts/1 Z+ 0:00 [create_ap] 15326 pts/1 Z+ 0:00 [create_ap] 15919 pts/2 S+ 0:00 grep --color=auto create_ap oazisn@localhost:/Applications/linux-wifi-hotspot$

What if i run create_ap manually?

oazisn@localhost:~/Applications/linux-wifi-hotspot$ pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --freq-band 5 -c 161 Config dir: /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z PID: 13138 Network Manager found, set ap0 as unmanaged device... DONE Custom frequency band set with 5Mhz with channel 161 Creating a virtual WiFi interface... ap0 created. Sharing Internet using method: nat Setting /usr/sbin/dnsmasq to complain mode. hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z/hostapd_ctrl Configuration file: /tmp/create_ap.wlp0s20f3.conf.G0LoZt9z/hostapd.conf Using interface ap0 with hwaddr f8:ac:65:26:ae:c7 and ssid "KantinSebelah" ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: authenticated ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: associated (aid 1) ap0: AP-STA-CONNECTED d0:9c:7a:1d:3d:d8 ap0: STA d0:9c:7a:1d:3d:d8 RADIUS: starting accounting session 2F84CC9F458481D9 ap0: STA d0:9c:7a:1d:3d:d8 WPA: pairwise key handshake completed (RSN)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lakinduakash/linux-wifi-hotspot/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA2EXMV6PGETQWVVR4TGPLSOC647ANCNFSM4TJP37QA .

lakinduakash avatar Nov 04 '20 04:11 lakinduakash

Here is 2.4 Ghz one.

Log:

oazisn@localhost:~$ wihotspot

(wihotspot-gui:10564): Gtk-WARNING **: 19:49:05.736: gtk_widget_size_allocate(): attempt to allocate widget with width 757 and height -4

(wihotspot-gui:10564): Gtk-WARNING **: 19:49:05.736: gtk_widget_size_allocate(): attempt to allocate widget with width 94 and height -1 pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --mkconfig /etc/wh.config --freq-band 2.4 -c 1 Config options written to '/etc/wh.config'

Screenshot : image

Here is what ps ax tell about create_ap:

oazisn@localhost:~$ ps ax | grep create_ap 10631 pts/1 Z+ 0:00 [create_ap] 11120 pts/2 S+ 0:00 grep --color=auto create_ap oazisn@localhost:~$

Creating manually:

oazisn@localhost:~$ pkexec --user root create_ap wlp0s20f3 wlp0s20f3 'KantinSebelah' 'tumbl3w33d' --freq-band 2.4 -c 1 Config dir: /tmp/create_ap.wlp0s20f3.conf.fc6I95gq PID: 11150 Network Manager found, set ap0 as unmanaged device... DONE Custom frequency band set with 2.4Mhz with channel 1 Creating a virtual WiFi interface... ap0 created. Sharing Internet using method: nat Setting /usr/sbin/dnsmasq to complain mode. hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp0s20f3.conf.fc6I95gq/hostapd_ctrl Configuration file: /tmp/create_ap.wlp0s20f3.conf.fc6I95gq/hostapd.conf Using interface ap0 with hwaddr f8:ac:65:26:ae:c7 and ssid "KantinSebelah" ap0: interface state UNINITIALIZED->ENABLED ap0: AP-ENABLED ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: authenticated ap0: STA d0:9c:7a:1d:3d:d8 IEEE 802.11: associated (aid 1) ap0: AP-STA-CONNECTED d0:9c:7a:1d:3d:d8 ap0: STA d0:9c:7a:1d:3d:d8 RADIUS: starting accounting session AF92D1B0B015B1F3 ap0: STA d0:9c:7a:1d:3d:d8 WPA: pairwise key handshake completed (RSN)

azisnaufal avatar Nov 04 '20 12:11 azisnaufal

duplicate of #88

lakinduakash avatar Dec 16 '20 21:12 lakinduakash