CYW43907 Force 5Ghz versus dual band?

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

cross mob
NiMc_1688136
Level 5
Level 5
10 sign-ins 50 questions asked 10 solutions authored

Is there a configuration or function that can disable the 2.4GHz operation in the WLAN side (roaming)?

0 Likes
1 Solution

yes, I think you can use below api to have a try to disable band 2.4G or band 5G when you find the scan results include the SSID with 2.4G ,5G together.

wwd_result_t wwd_wifi_change_band(uint32_t band )

{

       wiced_buffer_t buffer;

uint32_t * data;

data = (uint32_t*) wwd_sdpcm_get_ioctl_buffer( &buffer, sizeof(uint32_t) );

CHECK_IOCTL_BUFFER( data );

*data = band;

    CHECK_RETURN( wwd_sdpcm_send_ioctl( SDPCM_SET, WLC_SET_BAND, buffer, NULL, WWD_STA_INTERFACE ) );

return WWD_SUCCESS;

}

below is the results in console.

seems 0 both, 1 =5G, 2= 2.4G

pastedImage_2.png

View solution in original post

4 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hi:

Do you mean you only need the roaming function with 5G only  ?  2.4G can work , but no roaming option .

0 Likes

Can i force the CYW43907 to only use 5GHz if it is in an environment that has a SSID broadcasted on both 2.4 and 5?

0 Likes

yes, I think you can use below api to have a try to disable band 2.4G or band 5G when you find the scan results include the SSID with 2.4G ,5G together.

wwd_result_t wwd_wifi_change_band(uint32_t band )

{

       wiced_buffer_t buffer;

uint32_t * data;

data = (uint32_t*) wwd_sdpcm_get_ioctl_buffer( &buffer, sizeof(uint32_t) );

CHECK_IOCTL_BUFFER( data );

*data = band;

    CHECK_RETURN( wwd_sdpcm_send_ioctl( SDPCM_SET, WLC_SET_BAND, buffer, NULL, WWD_STA_INTERFACE ) );

return WWD_SUCCESS;

}

below is the results in console.

seems 0 both, 1 =5G, 2= 2.4G

pastedImage_2.png

Thanks ZhengbaoZ_96

I will give this function a try

0 Likes