Modify

Opened 4 years ago

#15431 new defect

WPS config handles not well in new script netifd.sh.

Reported by: cmtsij Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

If someone want to use WPS PBC, and he follow the WPS Option to config wps.
He need to setup "wps_config" as push_button at least.

If user select "hostapd-common" package, the device would use new script to parse wireless setting.
In new script(netifd.sh): it uses variable "config_methods" without parsing from wireless config. (source code).
Another variable "wps_pushbutton" set as 0 by default, and no body modifies it as 1. (source code)
So the script make a mistake to handle those WPS option.

249	        set_default wps_pushbutton 0
250	        set_default wps_label 0
251	
252	        config_methods=
253	        [ "$wps_pushbutton" -gt 0 ] && append config_methods push_button
254	        [ "$wps_label" -gt 0 ] && append config_methods label
255	
256	        [ -n "$wps_possible" -a -n "$config_methods" ] && {

Alternative if user select "hostapd-common-old" package, the device would use old script.
In old script(hostapd.sh),

190	        config_get config_methods "$vif" wps_config

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.