how to close 5G band?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
kash_4642641
Level 1
Level 1

We designed an embedded tablet based on rk3288.wifi chip is  cyw4354.Operating system is Linux + QT.

Now,we want the wifi chip to work only in the 2.4G band,how to close 5G band?

0 Likes
1 Solution

hello:

   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.

View solution in original post

0 Likes
7 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hello:

   Are you using a DHD structure driver for the tuning ?  Can you use wl tool for the debug?

0 Likes

I am using linux driver for debugging,I  can't use wl tool.

I can only use the following instructions for debugging

pastedImage_0.png

0 Likes

hello:

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;

       char buff[15];

       char cmdbuff[15];

       int cmd_size = 15;

       if ((!priv) || (band<0) || (band>=3))

               return -1;

       ret = os_snprintf(buff, sizeof(buff), "SETBAND %1d", band);

       if (os_snprintf_error(sizeof(buff), ret))

               return -1;

       ret = wpa_driver_nl80211_driver_cmd(priv, buff, cmdbuff, cmd_size);

       return ret;

}

i am using wpa_supplicat-2.6. How do I port this functionality to my code?

0 Likes

hello:

  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 .

0 Likes

Here is my wpa_supplicant instruction interface.I don't know how to turn off 5G.

Can you give me a suggestion?

pastedImage_0.png

0 Likes

hello:

   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.

0 Likes