Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

create_ap gets crazy if the host is suspended #153

Open
marmistrz opened this issue Apr 5, 2016 · 4 comments
Open

create_ap gets crazy if the host is suspended #153

marmistrz opened this issue Apr 5, 2016 · 4 comments

Comments

@marmistrz
Copy link

Here's the log

ap0: STA ec:9b:5b:fd:6d:c0 RADIUS: starting accounting session 6822B92A-00000001
ap0: STA ec:9b:5b:fd:6d:c0 WPA: pairwise key handshake completed (RSN)

above was ordinary output, and then suspend, and:

Failed to set beacon parameters 
Failed to set beacon parameters
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
ap0: AP-STA-DISCONNECTED ec:9b:5b:fd:6d:c0
ap0: STA ec:9b:5b:fd:6d:c0 IEEE 802.11: disassociated due to inactivity
ap0: STA ec:9b:5b:fd:6d:c0 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed

And the WiFi network isn't visible anymore

@oblique
Copy link
Owner

oblique commented Apr 5, 2016

This is probably a driver or a hostapd issue, and probably it will not have a workaround. What adapter do you have?

@marmistrz
Copy link
Author

The relevant part of the inxi output:

Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169
           IF: enp2s0 state: up speed: 100 Mbps duplex: full
           mac: xx:xx:xx:xx:xx:xx
           Card-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
           driver: ath9k
           IF: wlp3s0 state: down mac: xx:xx:xx:xx:xx:xx

@marmistrz
Copy link
Author

Maybe create_ap could detect the fact that the system is suspended and restart the AP?

@oblique
Copy link
Owner

oblique commented Oct 30, 2016

I started rewriting create_ap in Ruby. I don't plan to fix this in the bash implementation.

dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
Uses the /lib/systemd/system-sleep mechanism.
See https://www.freedesktop.org/software/systemd/man/systemd-suspend.service.html for how this works.

For unclear reasons, this only works in /lib/systemd/system-sleep, not in /usr/lib/systemd/system-sleep.

(ping oblique#153, oblique#167)
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
Uses the /lib/systemd/system-sleep mechanism.
See https://www.freedesktop.org/software/systemd/man/systemd-suspend.service.html for how this works.

For unclear reasons, this only works in /lib/systemd/system-sleep, not in /usr/lib/systemd/system-sleep.

(ping oblique#153, oblique#167)
dlenski added a commit to dlenski/create_ap that referenced this issue Apr 16, 2020
Uses the /lib/systemd/system-sleep mechanism.
See https://www.freedesktop.org/software/systemd/man/systemd-suspend.service.html for how this works.

For unclear reasons, this only works in /lib/systemd/system-sleep, not in /usr/lib/systemd/system-sleep.

(ping oblique#153, oblique#167)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants