RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
37
Input Parameters
VAP Name (string like wifi0, wifi1, etc.)
The integer value mapping has been shown below:
1- Enable only 20MHz
2- Enable only 40MHz
3 – Enable both 20 and 40MHz
Output Parameter
None
Reset Required
Yes. Refer to the example for the reset process for Client and Access Point
modes
Usage
# iwpriv <vap_name> set_htconf <value>
Example
The commands given below is used to delete and create the VAP to set
the bandwidth in Access Point mode:
# ./onebox_util rpine0 delete_vap wifi0
# ./onebox_util rpine0 create_vap wifi0 ap
# iwpriv wifi0 set_htconf $value
# ./wpa_supplicant –i wifi0 wpa_supplicant_open.conf &
Note:
Issue this ioctl before starting the supplicant.
The commands given below is used to set the 20MHz bandwidth in Client
mode and reset the Client for the command to take effect:
# iwpriv wifi0 set_htconf 1
# ./onebox_util rpine0 reset_adapter.
Note:
Here Set Bandwidth ioctl will work only in case of bsd. To set Bandwidth
using hostapd , refer to the section
Appendix G: Considerations need to
Set Debug Zone
Description
This command is used to select the debug zone for Wifi.
Default Value
0x4000