Enable mc_policy using mlanutl or during driver load

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable mc_policy using mlanutl or during driver load

828 Views
nandan-khant
Contributor II

Hello NXP Team,

I am working on a custom device running android 11 OS and having W8897 wireless chipset. The driver version string is attached in the screenshot.

Driver load commands are as follows:

insmod vendor/lib/modules/mlan.ko
insmod vendor/lib/modules/sd8897.ko host_mlme=1 cfg80211_wext=0xf sta_name=wlan wfd_name=p2p max_vir_bss=1 drv_mode=7 p2p_enh=1 wakelock_timeout=30 shutdown_hs=1

I am using mc_policy mlanutl commands as follows:

To enable mc_pliocy: $ mlanutl wlan0 mc_policy 1

To disable mc_pliocy: $ mlanutl wlan0 mc_policy 0

To read mc_pliocy: $ mlanutl wlan0 mc_policy

I am always getting the following error logs:

255|console:/ # mlanutl wlan0 mc_policy 1
mlanutl: Bad address
mlanutl: mc_policy fail

 

Please help to enable the multi-channel policy.

Is there any way to enable it by default during driver load? By default it is disabled.

0 Kudos
4 Replies

805 Views
ocourson
NXP TechSupport
NXP TechSupport

Dear @nandan-khant 

 

As far as I know there is no driver parameter to enable multichannel policy

 

On my past experience, mlanutl reported such error (mlanutl: Bad address) if the firmware had crashed.

Could you please check if the firmware has effectively crashed ?

 

Regards,

Olivier

0 Kudos

747 Views
nandan-khant
Contributor II

Hello @ocourson,

This issue is resolved now.

Thank you for your support.

However, we are facing a different issue now with using wpa_supplicant in Android.

Our DUT is STA and it is not able to connect with AP using the command line. We can connect with AP successfully when we use GUI.

My command: wpa_supplicant -i wlan0 -D nl80211 -c /data/vendor/wifi/wpa/wpa.conf -B

wpa_supplicant.conf file:

ctrl_interface=/data/vendor/wifi/wpa/sockets
network={
ssid="test_5GHz"
key_mgmt=NONE
}

The DUT is not able to connect with test_5GHz  AP.

When I perform scanning explicitly using the following command, it is able to connect successfully.

$ wpa_cli -i wlan0 scan

Attaching console and logcat logs for your reference.

Please help to resolve this issue on Android.

Thanks and Regards,

Nandan Khant

0 Kudos

730 Views
nandan-khant
Contributor II

Hello @ocourson,

Sure.

I have created a new issue here. 

Requesting your support to resolve it.

Thanks and Regards,

Nandan Khant

Tags (1)
0 Kudos

735 Views
ocourson
NXP TechSupport
NXP TechSupport

Dear @nandan-khant 

 

We do not support several issues in the same community post.

Please create a dedicated post for that new issue, or better report the issue on nxp.com (See SUPPORT, Support Tickets)

 

Regards,

Olivier

0 Kudos