Hi Jin, > What should I do if I want to add new parameters to /etc/config/wireless? > I need to add two new self-defined parameters to /etc/config/wireless so > that the wireless interface driver can work according to the > self-defined parameters. > > We use uci to config wireless file, so I believe by modifying some > source code I can add the new functions. > But which source code should I refer to?
In principle you are free to add any options you want to sections defined in /etc/config/wireless. Wireless interfaces are brought up and down via the /sbin/wifi command. This happens either manually from the command line, or from an init script. /sbin/wifi detects the driver needed, and calls driver specific setup procedures located in e.g /lib/wifi/mac80211.sh which sets up wrieless interface specific options (that's where you may want to do add your stuff). >From the driver specific setup in e.g. /lib/wifi/mac80211.sh also hooks for setting up helper applications like hostapd and wpa_supplicant (/lib/wifi/hostapd.sh and /lib/wifi/wpa_supplicant.sh) are called. The whole wireless setup quite intricated, and to be blunt a bash hell, so you may want to study the source code in the scripts indicated here. Cheers, Christian _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
