Bug #347
closed
Added by Hammel over 10 years ago.
Updated over 10 years ago.
Category:
04 - Root File System
Description
Either I've broken something or just forgot how to use the access point, but it doesn't seem to be working. Might be an issue with which wireless usb stick to use. Look in closed issues to get a refresher.
- Subject changed from Fix acces point usage to Fix access point usage
- Severity changed from 01 - Critical to 02 - High
- Status changed from New to In Progress
- % Done changed from 0 to 30
I found the problem. Hostapd 2.0 doesn't work if wpa_supplicant is running. So I killed wpa_supplicant and started hostapd and that got it running again. The question is whether or not it will accept connections. Based on this post for ArchLinux it seems it should. I just need a test for that. Probably testing to see if the PiBox ssid is visible and then trying to connect to it from my laptop.
- % Done changed from 30 to 50
Things that need to be fixed:
- when switching to AP the network restart doesn't kill wpa_supplicant
- Start dhcpd fails because /var/lib/dhcp doesn't exist and the leases file needs to be created (/var/lib/dhcp/dhcpd.leases)
- The static IP address from bui-network-config might not work with the address range in dhcpd.conf. The default IP address for the AP should be 192.168.3.1.
Do all this and the host goes into AP mode and starts serving up dhcp addresses.
- % Done changed from 50 to 70
Got it working tonight. The trick was to add the following to /etc/hostsapd.conf
auth_algs=1
wpa_pairwise=TKIP
macaddr_acl=0
ignore_broadcast_ssid=0
hw_mode=g
Not sure exactly which fixed the problem but I know changing auth_aug back to 2 (as it is now) causes it not to work. I'm pretty sure that was the issue since the other options don't seem that important.
Since bui-network-config writes this file from the code without a template file I'll have to fix the code (and/or make it use a template file).
- % Done changed from 70 to 80
Updated bui-network-config to write the defaults for these values. Tested on dev system. Need to verify on target.
- Status changed from In Progress to Closed
- % Done changed from 80 to 100
Verified working on target.
Closing issue.
Also available in: Atom
PDF