<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Working with trunk SVN version 41290.<div><br></div><div>I'm trying to tweak our setup to pass additional parameters on the command line to hostapd, and I was hoping to configure that using /etc/config/wireless, in the config wifi-device section.<div><br></div><div>So I added</div><div> option addl_param 'pval'</div><div><br></div><div>to the wifi-device configuration. Then in drv_mac80211_setup() (in /lib/netifd/wireless/mac80211.sh), in the initial json_get_vars call, I added addl_param, and later, I added the following:</div></div><div><br></div><div><div> [ -n "$hostapd_ctrl" ] && {</div><div> /usr/sbin/hostapd -P /var/run/wifi-$phy.pid -B "$hostapd_conf_file" <b>$addl_param</b></div></div><div><br></div><div>The problem is that my parameter value doesn't show up here.</div><div><br></div><div>What do I need to do to make the json_get_vars return the right value of addl_param from the config? Am I supposed to explicitly push that value into some place in some other script? Or is there some magic about the existing options to wifi-device?</div><div><br></div><div>I tried to follow the handling of things like "channel", etc., and did a bunch of monkey-see-monkey-do changes to also mention addl_param in all those places (/lib/netifd/hostapd.sh, etc.), but nothing seems to help.</div><div><br></div><div>I guess I'm really missing a big chunk of the picture here..</div><div><br></div><div>Thanks for any help!</div></body></html>