Hi Bastian, thanks for replying. The line I referred to is in wpa_supplicant.sh line 167.
Then, according to your explanation, in the script wpa_supplicant.sh line 167, that means the variable fixed will have a value of "fixed_freq=1" right? I guess this option is only enabled on the sta mode, doesn't it? I ask this, because I´m trying to understand how the client knows the AP channel or frequency... thanks again 2013/5/16 Bastian Bittorf <bitt...@bluebottle.com>: > * Francisco Cuesta <ndarkn...@gmail.com> [16.05.2013 18:32]: >> Thanks for replying Bastian, >> >> Do you know the meaning of the ${fixed:+"fixed_freq=1"} ?? I mean, >> this fixes the vaule of the frequency but for what value? > > i can only see: > > line 335: > [ "$channel" = "auto" -o "$channel" = "0" ] || { > fixed=1 > } > > line 528: > ${fixed:+fixed-freq} > > which means: if channel is auto or 0, than > the freq is NOT fixed, so dont insert the statement. > > the syntax: > ${variable:+bla} > > means: has variable a value, than output "bla", which is the same like > [ -n "$variable" ] && echo "bla" > > (but often used inline) > for further explenation read here: > http://tldp.org/LDP/abs/html/parameter-substitution.html > > bye, bastian > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel