Configure Modes
Configuring Modes and Other Parameters for Wi-Fi and Bluetooth
You can set power levels of Bluetooth and Wi-Fi, as well as modes of operation and country code. Use /etc/default/rs9113 to configure parameters at boot time. See below for parameters with their usage and input values.
For several of the parameters, only one option is currently available. See below for details and refer to the example file at the bottom of the page.
NOTE: Do not insert spaces inside the commands especially around the equal sign. Otherwise, it may not work.
Default Parameters
From /etc/default/rs9113:
# Skip loading the RS9113 related drivers if # set to zero. # RS9113_LOAD=1
RS9113_LOAD=1 enables the RS 9113 driver. To disable it, set it to zero:
RS9113_LOAD=0
# Parameters for rs9113 driver # # Enable Antenna Diversity (1)
The only option currently available for diversity is to disable it (set to 0):
RSI_ANTENNA_DIVERSITY=0
COEX Mode selection
This variable selects the COEX_MODE for module operation. NOTE: Only specific options and combinations of functions operate on the device. Not all combinations are possible. Please refer to the table and read details below. Those not specified in the table are not supported.
# COEX_MODE options: # 1 WLAN STATION /WIFI-Direct/WLAN PER # 2 WLAN ACCESS POINT (including multiple APs on different VAPs or Virtual Access Points) # 3 WLAN ACCESS POINT + STATION MODE (on multiple VAPs) # 4 BT CLASSIC MODE/BT CLASSIC PERIPHERAL MODE # 5 WLAN STATION + BT CLASSIC MODE # 6 WLAN ACCESS POINT + BT CLASSIC MODE # 8 BT LE MODE /BT LE PERIPHERAL MODE # 9 WLAN STATION + BT LE MODE # 12 BT CLASSIC + BT LE MODE # 14 WLAN ACCESS POINT + BT CLASSIC MODE+ BT LE MODE
This example sets the mode to Bluetooth Classic (BT) mode:
COEX_MODE=5
RF Power Mode parameter
The RF Power Mode parameter sets the power mode at which the RF operates. It is applicable for each protocol. The default is 0x00 – For Both TX and RX High Power. The following are the possible configurable values:
# Power selection # 0x00 - For Both TX and RX High Power # 0x11 - For Both TX and RX Medium Power # 0x22 - For Both TX and RX LOW Power # 0x10 - For High Power TX and Medium RX Power # 0x20 - For High Power TX and LOW RX Power # 0x01 - For Medium TX and RX High Power # 0x21 - For Medium Power TX and LOW RX Power # 0x02 - For Low Power TX and RX High Power # 0x12 - For LOW Power TX and Medium RX Power
This example sets the WLAN both the TX and RX for High Power:
WLAN_RF_PWR_MODE=0x00
This example does the same for Bluetooth:
BT_RF_PWR_MODE=0x00 # 0 - HIGH POWER MODE # 1 - MEDIUM POWER MODE # 2 - LOW POWER MODE
This example sets the BT on high power mode:
BT_RF_TX_POWER_MODE=0
Country selection
This parameter sets the module in a specific country. This is set commonly across all protocols. The following country codes are applicable:
# Country Selection # 0 World Domain # 840 US Domain Maps to US Region # 276 Germany Maps to EU Region # 392 Japan Maps to Japan Region # from ISO 3166-1
This example sets the country code to World Domain:
SET_COUNTRY_CODE=0
Antenna selection
This variable selects the antenna used. Currently, only option 2 is available on the device.
2 – Select internal antenna 3 – Select external antenna
So the internal antenna should be defined as follows:
ANT_SEL_VAL=2
For onboard antenna, only option 1 is available:
ONBOARD_ANT_SEL=1
Example file for /etc/default/rs9113
# Skip loading the RS9113 related drivers if # set to zero. # RS9113_LOAD=1 # Parameters for rs9113 driver # # Enable Antenna Diversity (1) RSI_ANTENNA_DIVERSITY=0 # COEX_MODE options: # 1 WLAN STATION /WIFI-Direct/WLAN PER # 2 WLAN ACCESS POINT(including muliple APs on different vaps) # 3 WLAN ACCESS POINT + STATION MODE(on multiple vaps) # 4 BT CLASSIC MODE/BT CLASSIC PER MODE # 5 WLAN STATION + BT CLASSIC MODE # 6 WLAN ACCESS POINT + BT CLASSIC MODE # 8 BT LE MODE /BT LE PER MODE # 9 WLAN STATION + BT LE MODE # 12 BT CLASSIC + BT LE MODE # 14 WLAN ACCESS POINT + BT CLASSIC MODE+ BT LE MODE COEX_MODE=3 # Power selection # 0x00 - For Both TX and RX High Power # 0x11 - For Both TX and RX Medium Power # 0x22 - For Both TX and RX LOW Power # 0x10 - For High Power TX and Medium RX Power # 0x20 - For High Power TX and LOW RX Power # 0x01 - For Medium TX and RX High Power # 0x21 - For Medium Power TX and LOW RX Power # 0x02 - For Low Power TX and RX High Power # 0x12 - For LOW Power TX and Medium RX Power WLAN_RF_PWR_MODE=0x00 BT_RF_PWR_MODE=0x00 #Power_mode type # 0 - HIGH POWER MODE # 1 - MEDIUM POWER MODE # 2 - LOW POWER MODE BT_RF_TX_POWER_MODE=0 BT_RF_RX_POWER_MODE=0 # Country Selection # 0 World Domain # 840 US Domain Maps to US Region # 276 Germany Maps to EU Region # 392 Japan Maps to Japan Region # from ISO 3166-1 SET_COUNTRY_CODE=0 # 2 – Select internal antenna # 3 – Select external antenna ANT_SEL_VAL=2 ONBOARD_ANT_SEL=1 SET_RETRY_COUNT=15 # Time to hold high, then hold low on reset during driver load reset SLEEPTIME=100000 # Time to wait while looping for interrupt and wake-up pins # to go high. INTSLEEPTIME=100000