PAN9026 uaputl configuration file

I have installed on my system by following commands:

insmod mlan.ko
insmod sd8977.ko drv_mode=3 fw_name=mrvl/sdsd8977_combo_v2.bin cal_data_cfg=none cfg80211_wext=0xf cfg80211_drcs=0 auto_ds=2 ps_mode=2
insmod bt8977.ko

then I have enabled the CCA for mlan0 and uap0 interfaces by:

mlanutl mlan0 hostcmd config/ed_mac_ctrl_V3_8977.conf ed_mac_ctrl_v3
uaputl.exe -i uap0 hostcmd config/ed_mac_ctrl_V3_8977.conf ed_mac_ctrl_v3

After that, following the example shown on Software Guide paragraph 9.3, I tried to load the settings from the configuration file but I get the following result:

dev_name:uap0
power mode = Disabled
System reset successful!
dev_name:uap0
dev_name:uap0
wmm_para.qos_info = 80
wmm_para.ac_params[0].aci_aifsn.aifsn = 1
wmm_para.ac_params[0].aci_aifsn.aci = 0
wmm_para.ac_params[0].ecw.ecw_max = 1
wmm_para.ac_params[0].ecw.ecw_min = 1
wmm_para.ac_params[0].tx_op_limit = 1
wmm_para.ac_params[1].aci_aifsn.aifsn = 2
wmm_para.ac_params[1].aci_aifsn.aci = 1
wmm_para.ac_params[1].ecw.ecw_max = 2
wmm_para.ac_params[1].ecw.ecw_min = 2
wmm_para.ac_params[1].tx_op_limit = 2
wmm_para.ac_params[2].aci_aifsn.aifsn = 3
wmm_para.ac_params[2].aci_aifsn.aci = 2
wmm_para.ac_params[2].ecw.ecw_max = 3
wmm_para.ac_params[2].ecw.ecw_min = 3
wmm_para.ac_params[2].tx_op_limit = 3
wmm_para.ac_params[3].aci_aifsn.aifsn = 4
wmm_para.ac_params[3].aci_aifsn.aci = 3
wmm_para.ac_params[3].ecw.ecw_max = 4
wmm_para.ac_params[3].ecw.ecw_min = 4
wmm_para.ac_params[3].tx_op_limit = 4
Bad address
ERR:UAP_BSS_CONFIG is not supported by uap0

On the configuration file I have changed only MaxStaNum to 8 instead 10.

Did I forget to set any parameters?

Thanks

Francesco

9replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi Francesco,

    are you using the latest SW package "SD-WLAN-SD-BT-8977-U16-MMC-W16.68.10.p6-16.26.10.p6-C4X16635_V2-MGPL"?

    In the original sources there is a bug with the Marvell utility uaputl by doing the system configuration, which we have already observed and informed to Marvell.

    Following the error message, which looks same to your error response:

    -----------------------------------------------------------------------------------------------------------------

    If bss_config is done by uaputl.conf file (uaputl.exe -i uap0 bss_config config/uaputl.conf), the driver responds with “Bad address” and “ERR:UAP_BSS_CONFIG is not supported by uap0”.

    The kernel system log responds with IOCTL failed (CMD_RESP: cmd 0xb0 error, result=0x2 / IOCTL failed: e8746800 id=0x20000, sub_id=0x2000c action=1, status_code=0x2).

    -----------------------------------------------------------------------------------------------------------------

    Marvell stated this bug in the release notes under chapter 11 as "Known Issues".

    There is a diff patch (0001-Remove-PreambleType-in-BSS-config.patch) available, which is Fixing the bug.

    Have you applied it already?

    Attached you can find the diff patch and a note about applying it.

    Like
  • Thanks.

    Yes, I'm using the last software release.

    I have applied that patch and build again the software.

    The patch does not fix the problem, now I get the following result

    dev_name:uap0
    power mode = Disabled
    System reset successful!
    dev_name:uap0
    dev_name:uap0
    wmm_para.qos_info = 80
    wmm_para.ac_params[0].aci_aifsn.aifsn = 1
    wmm_para.ac_params[0].aci_aifsn.aci = 0
    wmm_para.ac_params[0].ecw.ecw_max = 1
    wmm_para.ac_params[0].ecw.ecw_min = 1
    wmm_para.ac_params[0].tx_op_limit = 1
    wmm_para.ac_params[1].aci_aifsn.aifsn = 2
    wmm_para.ac_params[1].aci_aifsn.aci = 1
    wmm_para.ac_params[1].ecw.ecw_max = 2
    wmm_para.ac_params[1].ecw.ecw_min = 2
    wmm_para.ac_params[1].tx_op_limit = 2
    wmm_para.ac_params[2].aci_aifsn.aifsn = 3
    wmm_para.ac_params[2].aci_aifsn.aci = 2
    wmm_para.ac_params[2].ecw.ecw_max = 3
    wmm_para.ac_params[2].ecw.ecw_min = 3
    wmm_para.ac_params[2].tx_op_limit = 3
    wmm_para.ac_params[3].aci_aifsn.aifsn = 4
    wmm_para.ac_params[3].aci_aifsn.aci = 3
    wmm_para.ac_params[3].ecw.ecw_max = 4
    wmm_para.ac_params[3].ecw.ecw_min = 4
    wmm_para.ac_params[3].tx_op_limit = 4
    dev_name:uap0
    File opening Error
    Parsing of domain configuration file failed
    ERR: Wrong bss configuration!
    
    Like
  • Francesco Bruschi 

    Like
  • The diff patch seems to be applied.

    Based on the error message "File opening Error" and "Parsing … failed" it seems to be, that the uaputl.conf file couldn't be opened or found.

    Please check, if the uaputl.conf file is available and can be accessed by uaputl Utility (user permission).

    How you are setting up the uAP (BSS) configuration?

    Which commands are you using? 

    Like
  • To setup and starting the uap I have performed the following commands

    uaputl.exe -i uap0 sys_reset
    uaputl.exe -i uap0 sys_config uaputl.conf
    uaputl.exe -i uap0 bss_config uaputl.conf
    uaputl.exe -i uap0 bss_start

    About the configuration file I have only changed the MaxStaNum parameters to 8.

    Maybe this error is not related to the configuration file permission because I have created  a script to execute these other commands

    uaputl.exe -i uap0 sys_reset
    uaputl.exe -i uap0 sys_cfg_2040_coex 1
    uaputl.exe -i uap0 sys_cfg_11n 0
    uaputl.exe -i uap0 sys_cfg_rates 0x82 0x84 0x8B 0x96 0x0C 0x12 0x18 0x24 0x30 0x48 0x60 0x6C
    uaputl.exe -i uap0 sys_cfg_channel_ext 1 0
    uaputl.exe -i uap0 sys_cfg_ssid "PAN9026_uAP0"
    uaputl.exe -i uap0 bss_start

    and I got the following result

    dev_name:uap0
    power mode = Disabled
    System reset successful!
    dev_name:uap0
    20/40 coex configuration successful
    dev_name:uap0
    Configure 802.11n parameters successful
    dev_name:uap0
    Rates setting successful
    dev_name:uap0
    Channel setting successful
    dev_name:uap0
    SSID setting successful
    dev_name:uap0
    File opening Error
    Parsing of domain configuration file failed
    ERR: Wrong bss configuration!
    
    Like
  • At first the configuration of the uAP should be done either with conf file or manually bycommand line.

    I would further recommend to add a bss_stop before sys_reset.

    Further I recommend to put the config files in the folder "/config" underneath the "bin_sd8977" folder as originally used by Marvell structure. 

     

    Please add "config/" to the command line with "uaputl.conf":

    uaputl.exe -i uap0 sys_reset

    uaputl.exe -i uap0 sys_config config/uaputl.conf

    uaputl.exe -i uap0 bss_config config/uaputl.conf

    uaputl.exe -i uap0 bss_start

     

    Please check the above structure!

    Further please send the uaputl.conf file, which is failing with wrong BSS configuration!

    Like
  • Attached you can find the last script used to perform these test and the related configuration file.

    I have added the bss_stop command but I get the following error

    dev_name:uap0
    ERR: Could not stop BSS! BSS already stopped!
    Like
  • I have reviewed your "uap_test" command script and it is basically okay.

    The same command structure is stated in the PAN9026 Software Guide (9.3.1 on page 47).

    I have tried the conf file parsing with full path "/usr/sbin/mlan/mlan-utils/config/uaputl.conf" and short path "config/uaputl.conf".

    In both cases the BSS has been started.

    Further I have tested your uaputl.conf (originally the Marvell conf file) file on our PAN9026-IMX platform and it is working as well.

    The BSS was started on channel 6 with 11bgn and I was able to associate my smart phone Wi-Fi Client device with it.

    The error message (ERR: Could not stop BSS! ...) is not a problem and only appears, if the BSS is not started when using this command. It is only for safety, if you start and stop the BSS in a loop.

    Means, the command structure and conf file is correct.

     

    A good information for you is, that I could find out the root cause of your parsing problem with exactly the same error message.

    The major error message is "Parsing of domain configuration file failed". The domain configuration for uaputl (BSS) is parsed from the file "80211d_domain.conf". This file is usually located in the config directory together with other conf files like "uaputl.conf". Maybe you forgot to copy this file to your config directory "usr/sbin/mlan/mlan-utils/config/…".

    Please give me feedback if my guess is correct!

    Like
  • I have this file under my config folder.

    Like
Like Follow
  • Status Answered
  • 1 yr agoLast active
  • 9Replies
  • 148Views
  • 2 Following