Hi Folks In my work to create an all wireless router I have found a few problems with the way wpasupplicant is implemented.
1) the init sequence appears to be broken, as wpasupplicant must be started before an attempt to set the interface up 2) the wpasupplicant start script has an option bug I created two invocation scripts in /etc/network/if-pre-up.d and if-post-down.d which take care of the wpasupplicant start and stop sequence. The invocation can be controlled from /etc/network/interfaces like # uplink WiFi connection auto wlan0 iface wlan0 inet dhcp wpa_supplicant_control 1 There is a new parameter in /etc/default/wpasupplicant which controls the wait parameter for /etc/init.d/wpasupplicant instead of a fixed parameter in the startup file. This way we can fix the bug and make it even more flexible. # uncomment to make wpasupplicant wait for the control client #WPA_CLIENT_WAIT=-W So far it works for me. SALT# ifup wlan0 Starting wpa_supplicant. Successfully initialized wpa_supplicant Selected interface 'wlan0' wpa_state=SCANNING address=00:0b:6b:36:bb:b6 dhcpcd[11765]: version 5.2.11 starting dhcpcd[11765]: wlan0: waiting for carrier dhcpcd[11765]: wlan0: carrier acquired dhcpcd[11765]: wlan0: broadcasting for a lease dhcpcd[11765]: wlan0: offered 194.124.158.67 from 194.124.158.51 dhcpcd[11765]: wlan0: acknowledged 194.124.158.67 from 194.124.158.51 dhcpcd[11765]: wlan0: checking for 194.124.158.67 dhcpcd[11765]: wlan0: leased 194.124.158.67 for 1800 seconds dhcpcd[11765]: forked to background, child pid 11795 SALT# ifdown wlan0 dhcpcd[11807]: sending signal 1 to pid 11795 dhcpcd[11807]: waiting for pid 11795 to exit Stopping wpa_supplicant. stopped wpa_supplicant (pid 11760) I can commit these changes to maint if there is no objection. cheers Erich
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel