Are you using a DHD structure driver for the tuning ? Can you use wl tool for the debug?
1 of 1 people found this helpful
I think the best way is to re-compile the wpa_supplicant to disable 5G band.
It will send command to driver layer to disable 5G band completely .
** Uplayer uses "SET SETBAND AUTO/5G/2G" in order to set band
** Now send "SETBAND 0/1/2" command to driver.
static int nl80211_set_band(void *priv, enum set_band band)
int ret = 0;
int cmd_size = 15;
if ((!priv) || (band<0) || (band>=3))
ret = os_snprintf(buff, sizeof(buff), "SETBAND %1d", band);
if (os_snprintf_error(sizeof(buff), ret))
ret = wpa_driver_nl80211_driver_cmd(priv, buff, cmdbuff, cmd_size);
i am using wpa_supplicat-2.6. How do I port this functionality to my code?
I think we need to do it in two steps, the function is default in the supplicant 2.6:
1. add or enable the print in the function, to see if it is called during the supplicant init process.
2. if 1 is correct, change the function into 2G only .
Supplicant is an open source, you need to use rk toolchain to re-compile the wpa_supplicant source code. and do the modification.
I think you need to prepare environments before asking for help:
1. to prepare supplicant compile.
2. to prepare driver compile environment.
3. to prepare tools
I think module maker or rk can support you about these.