This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dBm negative vs positive?

Other Parts Discussed in Thread: WL1837

I have been working the with WL1837 linux version of the wifi radio for a little over a week now and I cannot for the life of me get the radio to output the power it should be (around 10 dBm). One thing that is confusing is that the datasheet lists the limiting value at 10 dbM.. but the spectrum analyzer reads negative numbers (-65 is pretty much the norm). 

I have been using these commands:

calibrator wlan0 plt power_mode on

calibrator wlan0 wl18xx_plt tune_channel 48 1 1

calibrator wlan0 wl18xx_plt set_tx_power 20,000 0 1 48 0 0 1 1 0 0 0 0

calibrator wlan0 wl18xx_plt start_tx 500 4 500 0 0 1 0 0 #chip MAC #my MAC 0

The 20,000 in the first field of the set_tx_power should set the output power to 20 dbM.. but again the average is -65.

Suggestions?

  • Hi,

    This maybe some configuration issue (maybe connected the wrong antenna or something like that).
    Please refer to: processors.wiki.ti.com/.../WL18xx_TX_Testing - start with CW.

    Regards,
    Gigi Joseph.
  • Hi,

    Any update?

    Regards,
    Gigi Joseph.
  • I still have not been able to get it working. I plugged each antenna port directly into the spectrum analyzer and one antenna read ~ -40 dBm while the other read ~ -5 dBm. Those were both measured with a 10 dBm attenuator, so it's more like -30 dBm and +5 dBm. This happened using either mode in set_atenna_diversity-5G and also using "1" for antenna parameter in set_tx_power (using a 2 yielded virtually no output).
  • Hi,

    Can you share the full list of commands that you are running including the full boot logs?

    Regards,
    Gigi Joseph.
  • U-Boot 2013.10 (Dec 31 2015 - 13:00:28)

    CPU: Freescale i.MX6Q rev1.5 at 792 MHz
    CPU: Temperature 44 C, calibration data: 0x5834e769
    Reset cause: POR
    Board: Variscite VAR_SOM_MX6 Quad-POP
    I2C: ready
    DRAM: 1 GiB
    Found PFUZE100! deviceid=10,revid=21
    Set POP Voltage
    MMC: FSL_SDHC: 0, FSL_SDHC: 1
    In: serial
    Out: serial
    Err: serial
    Board: Variscite VAR_SOM_MX6 Quad-POP
    Net: using phy at 7
    got MAC-1 address from fuse: f8:dc:7a:04:5c:8f
    FEC [PRIME]
    Warning: FEC MAC addresses don't match:
    Address in SROM is f8:dc:7a:04:5c:8f
    Address in environment is f8:dc:7a:04:5c:8b

    Hit any key to stop autoboot: 0
    mmc0 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    4310624 bytes read in 209 ms (19.7 MiB/s)
    Booting from mmc ...
    reading imx6q-var-dart.dtb
    44421 bytes read in 18 ms (2.4 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
    Image Name: Linux-3.14.38-6QP+g04e862b
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4310560 Bytes = 4.1 MiB
    Load Address: 10008000
    Entry Point: 10008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 18000000
    Booting using the fdt blob at 0x18000000
    Loading Kernel Image ... OK
    Using Device Tree in place at 18000000, end 1800dd84
    switched to ldo_bypass mode!

    Starting kernel ...

    failed to set parent of clk ldb_di0_sel to pll5_video_div: -38
    failed to set parent of clk ldb_di1_sel to pll5_video_div: -38
    imx6q-pinctrl 20e0000.iomuxc: Pin(MX6Q_PAD_ENET_RXD0) does not support config function
    imx6q-pinctrl 20e0000.iomuxc: pin_config_set op failed for pin 121
    imx6q-pinctrl 20e0000.iomuxc: Error applying setting, reverse things back
    imx6q-pinctrl 20e0000.iomuxc: failed to select default state
    mxc_sdc_fb fb.25: Can't get fb option for mxcfb1!
    gpmi-nand 112000.gpmi-nand: driver registration failed: -19
    of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02000000/spba-bus@02000000/ecspi@02008000' missing or empty
    spi_imx 2008000.ecspi: cannot get the TX DMA channel!
    spi_imx 2008000.ecspi: dma setup error,use pio instead
    fsl-hdmi-dai hdmi_audio.3: failed to probe. Load HDMI-video first.
    imx-audio-hdmi sound-hdmi.23: initialize HDMI-audio failed. load HDMI-video first!
    INIT: version 2.88 booting
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev: /proc/version /proc/cmdline /proc/devices
    udev: lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at /etc/udev/cache.data
    udev: against the current sysconf at /dev/shm/udev.cache
    ar0130cs 2-0010: Failed to write register 0x301a! ret=-5
    ar0130cs 2-0010: Failed to reset the sensor
    ar0130cs 2-0010: Failed to read register 0x0030!
    ar0130cs 2-0010: Failed to get chip id
    ERROR: v4l2 capture: slave not found!
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Populating dev cache
    ALSA: Restoring mixer settings...
    No state is present for card tlv320aic3xaudi
    Found hardware: "tlv320aic3x-aud" "" "" "" ""
    INIT: Entering runlevel: 5ing a gene
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting rpcbind daemon...done.
    Starting syslogd/klogd: done
    coreapp!

    __ __ _ _ _
    \ \ / / (_) (_) |
    \ \ / /_ _ _ __ _ ___ ___ _| |_ ___
    \ \/ / _` | '__| / __|/ __| | __/ _ \
    \ / (_| | | | \__ \ (__| | || __/
    \/ \__,_|_| |_|___/\___|_|\__\___|

    2015 Variscite, Ltd.
    Yocto Fido Rev 3.14.38_6qp-var01
    << VAR-SOM-MX6 >>

    Poky (Yocto Project Reference Distro) 1.8 var-som-mx6 /dev/ttymxc0

    var-som-mx6 login: root
    root@var-som-mx6:~# cd /usr/share/wl18xx
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 plt power_mode on
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt tune_channel 48 1 1
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt set_tx_power 20000 0 1 48 0 0 1 1 0 0 0 0
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt start_tx 500 4 500 0 0 1 0 0 54:4a:16:3b:c2:0d 64:00:6a:5a:91:96 0
    Calibrator:: Starting TX Simulation (delay=500, rate=4, size=500, mode=0
    data_type=0, BW=0, gi=1, opt1=0x0, opt2=0x0
    src=54:4a:16:3b:c2:0d
    dst=64:00:6a:5a:91:96)...

    ^^that's the complete script from boot to signal output

  • This is a screen grab of the spectrum analyzer

  • Hi,

    This is a really weird log! There are no logs regarding the wlcore or wl18xx driver/firmware version or wlan0 being up or anything.
    Are you able to operate WiFi normally?

    Can you give me the result of :

    1. lsmod
    2. ifconfig -a
    3. ifconfig wlan0 up
    4. iw wlan0 scan

    Regards,
    Gigi Joseph.
  • root@var-som-mx6:~# lsmod
    Module Size Used by
    wl18xx 87943 0
    wlcore 185546 1 wl18xx
    mac80211 412017 2 wl18xx,wlcore
    cfg80211 216376 3 mac80211,wl18xx,wlcore
    mxc_v4l2_capture 24965 0
    ipu_bg_overlay_sdc 5397 1 mxc_v4l2_capture
    ipu_still 2339 1 mxc_v4l2_capture
    ipu_prp_enc 5903 1 mxc_v4l2_capture
    ipu_csi_enc 3822 1 mxc_v4l2_capture
    ipu_fg_overlay_sdc 6142 1 mxc_v4l2_capture
    wlcore_sdio 6830 0
    ds2745 2780 0
    ar0130cs_camera 13230 0
    v4l2_int_device 2930 2 ar0130cs_camera,mxc_v4l2_capture
    olightek_svga 2908 0
    compat 16330 4 cfg80211,mac80211,wl18xx,wlcore_sdio
    mxc_dcic 6569 0
    nhd_c12832 13114 0
    rotary_encoder 3824 0

    root@var-som-mx6:~# ifconfig -a
    eth0 Link encap:Ethernet HWaddr F8:DC:7A:04:5C:8F
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    LOOPBACK MTU:65536 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 54:4A:16:3B:1C:D2
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    no output from "ifconfig wlan0 up"

    root@var-som-mx6:~# iw wlan0 scan
    BSS 00:18:0a:79:4b:2f(on wlan0)
    TSF: 1775295034121 usec (20d, 13:08:15)
    freq: 2437
    beacon interval: 100 TUs
    capability: ESS Privacy ShortPreamble ShortSlotTime RadioMeasure (0x1431)
    signal: -55.00 dBm
    last seen: 3800 ms ago
    SSID: TEAMS
    Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
    DS Parameter set: channel 6
    Country: US Environment: Indoor/Outdoor
    Channels [1 - 11] @ 30 dBm
    ERP: <no flags>
    Extended supported rates: 24.0 36.0 48.0 54.0
    HT capabilities:
    Capabilities: 0x11ad
    RX LDPC
    HT20
    SM Power Save disabled
    RX HT20 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: No restriction (0x00)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 6
    * secondary channel offset: no secondary
    * STA channel width: 20 MHz
    * RIFS: 0
    * HT protection: nonmember
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
    * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
    BSS 0e:18:0a:79:4b:2f(on wlan0)
    TSF: 1775295088011 usec (20d, 13:08:15)
    freq: 2437
    beacon interval: 100 TUs
    capability: ESS Privacy ShortPreamble ShortSlotTime RadioMeasure (0x1431)
    signal: -55.00 dBm
    last seen: 3800 ms ago
    Information elements from Probe Response frame:
    SSID: Guest
    Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
    DS Parameter set: channel 6
    Country: US Environment: Indoor/Outdoor
    Channels [1 - 11] @ 30 dBm
    ERP: <no flags>
    Extended supported rates: 24.0 36.0 48.0 54.0
    HT capabilities:
    Capabilities: 0x11ad
    RX LDPC
    HT20
    SM Power Save disabled
    RX HT20 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: No restriction (0x00)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 6
    * secondary channel offset: no secondary
    * STA channel width: 20 MHz
    * RIFS: 0
    * HT protection: nonmember
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    BSS 00:23:69:cd:0e:e7(on wlan0)
    TSF: 3811286937987 usec (44d, 02:41:26)
    freq: 2437
    beacon interval: 100 TUs
    capability: ESS ShortSlotTime (0x0401)
    signal: -56.00 dBm
    last seen: 3790 ms ago
    Information elements from Probe Response frame:
    SSID: \x00\x00\x00\x00\x00\x00\x00
    Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
    DS Parameter set: channel 6
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    ERP: Barker_Preamble_Mode
    ERP D4.0: Barker_Preamble_Mode
    Extended supported rates: 6.0 9.0 12.0 48.0
    WPS: * Version: 1.0
    * Wi-Fi Protected Setup State: 2 (Configured)
    BSS 10:9f:a9:2d:3e:a1(on wlan0)
    TSF: 3 usec (0d, 00:00:00)
    freq: 2462
    beacon interval: 100 TUs
    capability: ESS Privacy ShortSlotTime ImmediateBACK (0x8411)
    signal: -70.00 dBm
    last seen: 3650 ms ago
    Information elements from Probe Response frame:
    SSID: DIRECT-xy2D3EA1
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 11
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    ERP: Barker_Preamble_Mode
    RSN: * Version: 1
    * Group cipher: CCMP
    * Pairwise ciphers: CCMP
    * Authentication suites: PSK
    * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
    HT capabilities:
    Capabilities: 0x6c
    HT20
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    No RX STBC
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 16 usec (0x07)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 11
    * secondary channel offset: no secondary
    * STA channel width: 20 MHz
    * RIFS: 0
    * HT protection: no
    * non-GF present: 0
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 2976 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1472 usec
    WPS: * Version: 1.0
    * Wi-Fi Protected Setup State: 2 (Configured)
    * Response Type: 3 (AP)
    * UUID: 109fa92d-3ea1-0000-0000-000000000000
    * Manufacturer: Actiontec
    * Model: ScreenBeam
    * Model Number: SBWD100B
    * Serial Number: 12345
    * Primary Device Type: 6-0050f204-1
    * Device name: Eng Conf
    * Config methods: Label, Display, PBC, Keypad
    * RF Bands: 0x1
    * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
    BSS d2:e9:97:4e:bd:74(on wlan0)
    TSF: 3196628618305 usec (36d, 23:57:08)
    freq: 2462
    beacon interval: 100 TUs
    capability: IBSS (0x0002)
    signal: -68.00 dBm
    last seen: 3660 ms ago
    SSID: SETUP
    Supported rates: 1.0* 2.0* 5.5* 11.0*
    DS Parameter set: channel 11
    IBSS ATIM window: 0 TUsBSS 54:4a:16:3b:c8:38(on wlan0)
    TSF: 163905945878 usec (1d, 21:31:45)
    freq: 5240
    beacon interval: 100 TUs
    capability: ESS Privacy ShortPreamble (0x0031)
    signal: -71.00 dBm
    last seen: 2920 ms ago
    Information elements from Probe Response frame:
    SSID: tecore-wpa
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 48
    TIM: DTIM Count 1 DTIM Period 2 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 48] @ 17 dBm
    Channels [52 - 64] @ 23 dBm
    Channels [149 - 165] @ 30 dBm
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    HT capabilities:
    Capabilities: 0x3c
    HT20
    SM Power Save disabled
    RX Greenfield
    RX HT20 SGI
    No RX STBC
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 16383 bytes (exponent: 0x001)
    Minimum RX AMPDU time spacing: 16 usec (0x07)
    HT TX/RX MCS rate indexes supported: 0-7
    HT operation:
    * primary channel: 48
    * secondary channel offset: no secondary
    * STA channel width: 20 MHz
    * RIFS: 0
    * HT protection: no
    * non-GF present: 0
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Extended capabilities: Extended Channel Switching, 6
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    BSS 62:45:b0:fa:35:7e(on wlan0)
    TSF: 1275654758443 usec (14d, 18:20:54)
    freq: 5745
    beacon interval: 100 TUs
    capability: ESS Privacy ShortPreamble QoS ShortSlotTime DelayedBACK ImmediateBACK (0xc631)
    signal: -70.00 dBm
    last seen: 2860 ms ago
    Information elements from Probe Response frame:
    SSID:
    BSS 8a:15:14:a3:62:00(on wlan0)
    TSF: 130365644881 usec (1d, 12:12:45)
    freq: 5805
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt RadioMeasure (0x1111)
    signal: -63.00 dBm
    last seen: 2590 ms ago
    Information elements from Probe Response frame:
    SSID: TEAMS
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 161
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 24 dBm
    Channels [40 - 40] @ 24 dBm
    Channels [44 - 44] @ 24 dBm
    Channels [48 - 48] @ 24 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [144 - 144] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 0 dB
    TPC report: TX power: 21 dBm
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
    * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
    HT capabilities:
    Capabilities: 0x9ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 7935 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 4 usec (0x05)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 161
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 1
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Extended capabilities: Extended Channel Switching, 6
    VHT capabilities:
    VHT Capabilities (0x0f8159b2):
    Max MPDU length: 11454
    Supported Channel Width: neither 160 nor 80+80
    RX LDPC
    short GI (80 MHz)
    TX STBC
    SU Beamformer
    SU Beamformee
    VHT RX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT RX highest supported: 0 Mbps
    VHT TX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT TX highest supported: 0 Mbps
    VHT operation:
    * channel width: 1 (80 MHz)
    * center freq segment 1: 155
    * center freq segment 2: 0
    * VHT basic MCS set: 0x0000
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
    WMM: information: 01 80
    BSS 8a:15:14:a3:62:02(on wlan0)
    TSF: 130365645413 usec (1d, 12:12:45)
    freq: 5805
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt RadioMeasure (0x1111)
    signal: -63.00 dBm
    last seen: 2590 ms ago
    Information elements from Probe Response frame:
    SSID: \x00\x00\x00\x00\x00\x00\x00
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 161
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 24 dBm
    Channels [40 - 40] @ 24 dBm
    Channels [44 - 44] @ 24 dBm
    Channels [48 - 48] @ 24 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [144 - 144] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 0 dB
    TPC report: TX power: 21 dBm
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
    HT capabilities:
    Capabilities: 0x9ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 7935 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 4 usec (0x05)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 161
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 1
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Extended capabilities: Extended Channel Switching, 6
    VHT capabilities:
    VHT Capabilities (0x0f8159b2):
    Max MPDU length: 11454
    Supported Channel Width: neither 160 nor 80+80
    RX LDPC
    short GI (80 MHz)
    TX STBC
    SU Beamformer
    SU Beamformee
    VHT RX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT RX highest supported: 0 Mbps
    VHT TX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT TX highest supported: 0 Mbps
    VHT operation:
    * channel width: 1 (80 MHz)
    * center freq segment 1: 155
    * center freq segment 2: 0
    * VHT basic MCS set: 0x0000
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    WMM: information: 01 80
    BSS 8a:15:14:a3:62:03(on wlan0)
    TSF: 130365645930 usec (1d, 12:12:45)
    freq: 5805
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt RadioMeasure (0x1111)
    signal: -63.00 dBm
    last seen: 2590 ms ago
    Information elements from Probe Response frame:
    SSID: Guest
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 161
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 24 dBm
    Channels [40 - 40] @ 24 dBm
    Channels [44 - 44] @ 24 dBm
    Channels [48 - 48] @ 24 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [144 - 144] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 0 dB
    TPC report: TX power: 21 dBm
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
    HT capabilities:
    Capabilities: 0x9ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 7935 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 4 usec (0x05)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 161
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 1
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Extended capabilities: Extended Channel Switching, 6
    VHT capabilities:
    VHT Capabilities (0x0f8159b2):
    Max MPDU length: 11454
    Supported Channel Width: neither 160 nor 80+80
    RX LDPC
    short GI (80 MHz)
    TX STBC
    SU Beamformer
    SU Beamformee
    VHT RX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT RX highest supported: 0 Mbps
    VHT TX MCS set:
    1 streams: MCS 0-9
    2 streams: MCS 0-9
    3 streams: not supported
    4 streams: not supported
    5 streams: not supported
    6 streams: not supported
    7 streams: not supported
    8 streams: not supported
    VHT TX highest supported: 0 Mbps
    VHT operation:
    * channel width: 1 (80 MHz)
    * center freq segment 1: 155
    * center freq segment 2: 0
    * VHT basic MCS set: 0x0000
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    WMM: information: 01 80
    BSS 0a:18:1a:79:4b:2f(on wlan0)
    TSF: 29598540859 usec (0d, 08:13:18)
    freq: 5320
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt ShortSlotTime RadioMeasure (0x1511)
    signal: -62.00 dBm
    last seen: 1870 ms ago
    Information elements from Probe Response frame:
    SSID:
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 64
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 17 dBm
    Channels [40 - 40] @ 17 dBm
    Channels [44 - 44] @ 17 dBm
    Channels [48 - 48] @ 17 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 3 dB
    HT capabilities:
    Capabilities: 0x1ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 8 usec (0x06)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 64
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    BSS 0e:18:1a:79:4b:2f(on wlan0)
    TSF: 29598566459 usec (0d, 08:13:18)
    freq: 5320
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt ShortSlotTime RadioMeasure (0x1511)
    signal: -62.00 dBm
    last seen: 1840 ms ago
    Information elements from Probe Response frame:
    SSID: Guest
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 64
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 17 dBm
    Channels [40 - 40] @ 17 dBm
    Channels [44 - 44] @ 17 dBm
    Channels [48 - 48] @ 17 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 3 dB
    HT capabilities:
    Capabilities: 0x1ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 8 usec (0x06)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 64
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: PSK
    BSS 02:18:1a:79:4b:2f(on wlan0)
    TSF: 29598515259 usec (0d, 08:13:18)
    freq: 5320
    beacon interval: 100 TUs
    capability: ESS Privacy SpectrumMgmt ShortSlotTime RadioMeasure (0x1511)
    signal: -62.00 dBm
    last seen: 1890 ms ago
    Information elements from Probe Response frame:
    SSID: TEAMS
    Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
    DS Parameter set: channel 64
    TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x1 Bitmap[0] 0x20
    Country: US Environment: Indoor/Outdoor
    Channels [36 - 36] @ 17 dBm
    Channels [40 - 40] @ 17 dBm
    Channels [44 - 44] @ 17 dBm
    Channels [48 - 48] @ 17 dBm
    Channels [52 - 52] @ 24 dBm
    Channels [56 - 56] @ 24 dBm
    Channels [60 - 60] @ 24 dBm
    Channels [64 - 64] @ 24 dBm
    Channels [100 - 100] @ 24 dBm
    Channels [104 - 104] @ 24 dBm
    Channels [108 - 108] @ 24 dBm
    Channels [112 - 112] @ 24 dBm
    Channels [116 - 116] @ 24 dBm
    Channels [120 - 120] @ 24 dBm
    Channels [124 - 124] @ 24 dBm
    Channels [128 - 128] @ 24 dBm
    Channels [132 - 132] @ 24 dBm
    Channels [136 - 136] @ 24 dBm
    Channels [140 - 140] @ 24 dBm
    Channels [149 - 149] @ 30 dBm
    Channels [153 - 153] @ 30 dBm
    Channels [157 - 157] @ 30 dBm
    Channels [161 - 161] @ 30 dBm
    Channels [165 - 165] @ 30 dBm
    Power constraint: 3 dB
    HT capabilities:
    Capabilities: 0x1ef
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    TX STBC
    RX STBC 1-stream
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 8 usec (0x06)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 64
    * secondary channel offset: below
    * STA channel width: any
    * RIFS: 1
    * HT protection: 20 MHz
    * non-GF present: 1
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    WMM: * Parameter version 1
    * u-APSD
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
    * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: CCMP TKIP
    * Authentication suites: IEEE 802.1X
  • Hi,

    Looks like WiFi is functional.
    How have you connected to the power meter? Are you running the "configure-device.sh" script?

    Regards,
    Gigi Joseph.
  • I'm working on that right now. I've written it... I'm just trying to figure out how to run it.
  • I'm running the configure-device.sh script from git.ti.com/.../configure-device.sh with a few minor modifications. After I run the script however, I can't run iw or plt commands. I think it's a problem with getting the "devname" because I can't think of anything else. Any thoughts?
  • Hi,

    What modification? What is the error you get when you run the "iw" command? Can you paste the full boot logs?

    Regards,
    Gigi Joseph.
  • This is the configure-device script:

    binary_name="/lib/firmware/ti-connectivity/wl18xx-conf.bin"
    
    if [ $# -eq 1 ]; then
    
     case $1 in
    
       1837_test_5G) number_2_4G_antenna=0; number_5G_antenna=1; ht40=0;;
    
       1837_one_24) number_2_4G_antenna=1; number_5G_antenna=1; ht40=0;;
    
       1837_normal) number_2_4G_antenna=2; number_5G_antenna=1; ht40=0;;
    
      *) echo "Unknown Device";exit ;;
    
     esac
    
    fi
    
    low_band_component=0x2
    
    board_type=4
    
    NUM_ANTENNAE=-1
    
    while [ $NUM_ANTENNAE -eq -1 ]
    
    do
    
        if [ $number_2_4G_antenna -gt 1 ]; then
    
             echo "Device is capable of supporting 2 antenna in 2.4Ghz band"
    
             read -p 'how many antennae are fitted? [1/2] : ' NUM_ANTENNAE
    
           case $NUM_ANTENNAE in
    
                  "1") number_2_4G_antenna=1;;
    
                  "2") number_2_4G_antenna=2;;
    
                   *) echo "Please enter 1 or 2";NUM_ANTENNAE=-1;continue;;
    
             esac
    
     else
    
           NUM_ANTENNAE=$number_2_4G_antenna;
    
     fi
    
    done
    
    NUM_ANTENNAE=-1
    
    while [ $NUM_ANTENNAE -eq -1 ]
    
    do
    
      if [ $number_5G_antenna -eq 1 ]; then
    
           echo "Device is capable of supporting 5GHz"
    
           read -p 'how many 5GHz antennae are fitted? [0/1] : ' NUM_ANTENNAE
    
           case $NUM_ANTENNAE in
    
                "0") number_5G_antenna=0;;
    
                "1") number_5G_antenna=1;;
    
                  *) echo "Please enter 0 or 1";NUM_ANTENNAE=-1;continue;;
    
           esac
    
     else
    
           NUM_ANTENNAE=$number_2_4G_antenna;
    
     fi
    
    done
    
    SISO=-1
    
    while [ $SISO -eq -1 ]
    
    do
    
    if [$ht40 -eq 1 ]; then
    
           echo "Device is capable of supporting SISO40"
    
           read -p 'should it be enabled? [y/n] : ' SISO
    
           case $SISO in
    
                "n") ht40=0;SISO=0;;
    
                "N") ht40=0;SISO=0;;
    
                "y") ht40=0;SISO=0;;
    
                "Y") ht40=1;SISO=1;;
    
                  *) echo "Please enter y or n";SISO=-1;continue;;
    
           esac
    
    else
    
        SISO=$ht40;
    
    fi
    
    done
    
    MODIFY_CONF=0
    
    modify_conf_file=0
    
    rmmod wlcore_sdio
    
    cd /usr/bin/wlconf
    
    if [ -e $binary_name ]; then
    
           echo "A wl18xx-conf.bin file already exists, do you want to modify it (y
    
           read -p 'modify it? [y/n] : ' MODIFY_CONF
    
           case $MODIFY_CONF in
    
              "n") modify_conf_file=0;;
    
              "N") modify_conf_file=0;;
    
              "y") modify_conf_file=1;;
    
              "Y") modify_conf_file=1;;
    
                *) echo "Please enter y or n: ";MODIFY_CONF=0;continue;;
    
            esac
    
    fi
    
    ini_file_name="example.ini"
    
    INPUT_NAME=0
    
    if [ $modify_conf_file -eq 0 ]; then
    
     if [ -e $ini_file_name ]; then
    
       echo "Create clean wl18xx-conf.bin from $ini_file_name"
    
     else
    
       echo "$ini_file_name does not exist, "
    
       read -p 'enter another ini file name: ' INPUT_NAME
    
    ini_file_name=$INPUT_NAME
    
       if [ ! -e $ini_file_name ]; then
    
         echo "$ini_file_name does not exist in /usr/sbin/wlconf"
    
         exit 1
    
       fi
    
     fi
    
     ./wlconf -o $binary_name -I $ini_file_name
    
    fi
    
    ./wlconf -i $binary_name -o $binary_name -s wl18xx.phy.number_of_assembled_ant2_
    
    ./wlconf -i $binary_name -o $binary_name -s wl18xx.phy.number_of_assembled_ant5=
    
    ./wlconf -i $binary_name -o $binary_name -s wl18xx.ht.mode=$ht40
    
    ./wlconf -i $binary_name -o $binary_name -s wl18xx.phy.low_band_component=$low_b
    
    ./wlconf -i $binary_name -o $binary_name -s wl18xx.phy.board_type=$board_type
    
    modprobe wlcore_sdio

    The only real modification there is the name of the arguments at the top.

    Running iw before the configure script:

    root@var-som-mx6:/usr/sbin# iw phy0 info
    Wiphy phy0
    max # scan SSIDs: 1
    max scan IEs length: 441 bytes
    Retry short limit: 7
    Retry long limit: 4
    Coverage class: 0 (up to 0m)
    Device supports AP-side u-APSD.
    Supported Ciphers:
    * WEP40 (00-0f-ac:1)
    * WEP104 (00-0f-ac:5)
    * TKIP (00-0f-ac:2)
    * CCMP (00-0f-ac:4)
    * WPI-SMS4 (00-14-72:1)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
    * managed
    * AP
    * AP/VLAN
    * monitor
    * P2P-client
    * P2P-GO
    * P2P-device
    Band 1:
    Capabilities: 0x1072
    HT20/HT40
    Static SM Power Save
    RX Greenfield
    RX HT20 SGI
    RX HT40 SGI
    No RX STBC
    Max AMSDU length: 3839 bytes
    DSSS/CCK HT40
    Maximum RX AMPDU length 16383 bytes (exponent: 0x001)
    Minimum RX AMPDU time spacing: 16 usec (0x07)
    HT TX/RX MCS rate indexes supported: 0-7
    Bitrates (non-HT):
    * 1.0 Mbps
    * 2.0 Mbps (short preamble supported)
    * 5.5 Mbps (short preamble supported)
    * 11.0 Mbps (short preamble supported)
    * 6.0 Mbps
    * 9.0 Mbps
    * 12.0 Mbps
    * 18.0 Mbps
    * 24.0 Mbps
    * 36.0 Mbps
    * 48.0 Mbps
    * 54.0 Mbps
    Frequencies:
    * 2412 MHz [1] (20.0 dBm)
    * 2417 MHz [2] (20.0 dBm)
    * 2422 MHz [3] (20.0 dBm)
    * 2427 MHz [4] (20.0 dBm)
    * 2432 MHz [5] (20.0 dBm)
    * 2437 MHz [6] (20.0 dBm)
    * 2442 MHz [7] (20.0 dBm)
    * 2447 MHz [8] (20.0 dBm)
    * 2452 MHz [9] (20.0 dBm)
    * 2457 MHz [10] (20.0 dBm)
    * 2462 MHz [11] (20.0 dBm)
    * 2467 MHz [12] (20.0 dBm) (no IR)
    * 2472 MHz [13] (20.0 dBm) (no IR)
    * 2484 MHz [14] (20.0 dBm) (no IR)
    Band 2:
    Capabilities: 0x72
    HT20/HT40
    Static SM Power Save
    RX Greenfield
    RX HT20 SGI
    RX HT40 SGI
    No RX STBC
    Max AMSDU length: 3839 bytes
    No DSSS/CCK HT40
    Maximum RX AMPDU length 16383 bytes (exponent: 0x001)
    Minimum RX AMPDU time spacing: 16 usec (0x07)
    HT TX/RX MCS rate indexes supported: 0-7
    Bitrates (non-HT):
    * 6.0 Mbps
    * 9.0 Mbps
    * 12.0 Mbps
    * 18.0 Mbps
    * 24.0 Mbps
    * 36.0 Mbps
    * 48.0 Mbps
    * 54.0 Mbps
    Frequencies:
    * 5040 MHz [8] (disabled)
    * 5060 MHz [12] (disabled)
    * 5080 MHz [16] (disabled)
    * 5170 MHz [34] (disabled)
    * 5180 MHz [36] (20.0 dBm) (no IR)
    * 5190 MHz [38] (20.0 dBm) (no IR)
    * 5200 MHz [40] (20.0 dBm) (no IR)
    * 5210 MHz [42] (20.0 dBm) (no IR)
    * 5220 MHz [44] (20.0 dBm) (no IR)
    * 5230 MHz [46] (20.0 dBm) (no IR)
    * 5240 MHz [48] (20.0 dBm) (no IR)
    * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
    DFS state: usable (for 58 sec)
    DFS CAC time: 60000 ms
    * 5745 MHz [149] (20.0 dBm) (no IR)
    * 5765 MHz [153] (20.0 dBm) (no IR)
    * 5785 MHz [157] (20.0 dBm) (no IR)
    * 5805 MHz [161] (20.0 dBm) (no IR)
    * 5825 MHz [165] (20.0 dBm) (no IR)
    Supported commands:
    * new_interface
    * set_interface
    * new_key
    * start_ap
    * new_station
    * set_bss
    * authenticate
    * associate
    * deauthenticate
    * disassociate
    * join_ibss
    * remain_on_channel
    * set_tx_bitrate_mask
    * frame
    * frame_wait_cancel
    * set_wiphy_netns
    * set_channel
    * set_wds_peer
    * start_sched_scan
    * probe_client
    * set_noack_map
    * register_beacons
    * start_p2p_device
    * set_mcast_rate
    * testmode
    * channel_switch
    * Unknown command (104)
    * connect
    * disconnect
    Supported TX frame types:
    * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    Supported RX frame types:
    * IBSS: 0x40 0xb0 0xc0 0xd0
    * managed: 0x40 0xd0
    * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * mesh point: 0xb0 0xc0 0xd0
    * P2P-client: 0x40 0xd0
    * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    * P2P-device: 0x40 0xd0
    WoWLAN support:
    * wake up on anything (device continues operating normally)
    * wake up on pattern match, up to 5 patterns of 1-91 bytes,
    maximum packet offset 0 bytes
    software interface modes (can always be added):
    * AP/VLAN
    * monitor
    valid interface combinations:
    * #{ managed } <= 2, #{ AP, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
    total <= 3, #channels <= 2
    * #{ AP } <= 2, #{ P2P-device } <= 1,
    total <= 2, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

    * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
    total <= 3, #channels <= 2
    * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
    total <= 3, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

    * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-GO } <= 1, #{ P2P-device } <= 1,
    total <= 3, #channels <= 1
    HT Capability overrides:
    * MCS: ff ff ff ff ff ff ff ff ff ff
    * maximum A-MSDU length
    * supported channel width
    * short GI for 40 MHz
    * max A-MPDU length exponent
    * min MPDU start spacing
    Device supports TX status socket option.
    Device supports HT-IBSS.
    Device supports scan flush.

    Running iw after the configure script:

    root@var-som-mx6:/usr/sbin# iw phy0 info
    Usage: iw [options] command
    Options:
    --debug enable netlink debugging
    --version show version (3.15)
    Commands:
    help [command]
    Print usage for all or a specific command, e.g.
    "help wowlan" or "help wowlan enable".

    event [-t] [-r] [-f]
    Monitor events from the kernel.
    -t - print timestamp
    -r - print relative timstamp
    -f - print full frame for auth/assoc etc.

    features


    commands
    list all known commands and their decimal & hex value

    phy
    list
    List all wireless devices and their capabilities.

    phy <phyname> info
    Show capabilities for the specified wireless device.

    dev
    List all network interfaces for wireless hardware.

    dev <devname> info
    Show information for this interface.

    dev <devname> del
    Remove this virtual interface

    dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
    phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
    Add a new virtual interface with the given configuration.
    Valid interface types are: managed, ibss, monitor, mesh, wds.

    The flags are only used for monitor interfaces, valid flags are:
    none: no special flags
    fcsfail: show frames with FCS errors
    control: show control frames
    otherbss: show frames from other BSSes
    cook: use cooked mode
    active: use active mode (ACK incoming unicast packets)

    The mesh_id is used only for mesh mode.

    dev <devname> ibss join <SSID> <freq in MHz> [HT20|HT40+|HT40-|NOHT|5MHZ|10MHZ] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
    Join the IBSS cell with the given SSID, if it doesn't exist create
    it on the given frequency. When fixed frequency is requested, don't
    join/create a cell on a different frequency. When a fixed BSSID is
    requested use that BSSID and do not adopt another cell's BSSID even
    if it has higher TSF and the same SSID. If an IBSS is created, create
    it with the specified basic-rates, multicast-rate and beacon-interval.

    dev <devname> ibss leave
    Leave the current IBSS cell.

    dev <devname> station set <MAC address> plink_action <open|block>
    Set mesh peer link action for this station (peer).

    dev <devname> station set <MAC address> vlan <ifindex>
    Set an AP VLAN for this station.

    dev <devname> station set <MAC address> mesh_power_mode <active|light|deep>
    Set link-specific mesh power mode for this station

    dev <devname> station dump
    List all stations known, e.g. the AP on managed interfaces

    dev <devname> station del <MAC address>
    Remove the given station entry (use with caution!)

    dev <devname> station get <MAC address>
    Get information for a specific station.

    dev <devname> survey dump
    List all gathered channel survey data

    dev <devname> mesh leave
    Leave a mesh.

    dev <devname> mesh join <mesh ID> [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
    Join a mesh with the given mesh ID with mcast-rate and mesh parameters.

    dev <devname> mpath dump
    List known mesh paths.

    dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
    Set an existing mesh path's next hop.

    dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
    Create a new mesh path (instead of relying on automatic discovery).

    dev <devname> mpath del <MAC address>
    Remove the mesh path to the given node.

    dev <devname> mpath get <MAC address>
    Get information on mesh path to the given node.

    dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [ssid <ssid>*|passive]
    Scan on the given frequencies and probe for the given SSIDs
    (or wildcard if not given) unless passive scanning is requested.
    If -u is specified print unknown data in the scan results.
    Specified (vendor) IEs must be well-formed.

    dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [ssid <ssid>*|passive]
    Trigger a scan on the given frequencies with probing for the given
    SSIDs (or wildcard if not given) unless passive scanning is requested.

    dev <devname> scan dump [-u]
    Dump the current scan results. If -u is specified, print unknown
    data in scan results.

    reg get
    Print out the kernel's current regulatory domain information.

    reg set <ISO/IEC 3166-1 alpha2>
    Notify the kernel about the current regulatory domain.

    dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
    Authenticate with the given network.


    dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
    Join the network with the given SSID (and frequency, BSSID).
    With -w, wait for the connect to finish or fail.

    dev <devname> disconnect
    Disconnect from the current network.

    dev <devname> link
    Print information about the current link, if any.

    dev <devname> offchannel <freq> <duration>
    Leave operating channel and go to the given channel for a while.

    dev <devname> cqm rssi <threshold|off> [<hysteresis>]
    Set connection quality monitor RSSI threshold.


    phy <phyname> wowlan show
    Show WoWLAN status.

    phy <phyname> wowlan disable
    Disable WoWLAN.

    phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [tcp <config-file>] [patterns [offset1+]<pattern1> ...]
    Enable WoWLAN with the given triggers.
    Each pattern is given as a bytestring with '-' in places where any byte
    may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
    00:11:22:33:ff:44 etc.
    Offset and pattern should be separated by '+', e.g. 18+43:34:00:12 will match '43:34:00:12' after 18 bytes of offset in Rx packet.

    The TCP configuration file contains:
    source=ip[:port]
    dest=ip:port@mac
    data=<hex data packet>
    data.interval=seconds
    [wake=<hex packet with masked out bytes indicated by '-'>]
    [data.seq=len,offset[,start]]
    [data.tok=len,offset,<token stream>]

    phy <phyname> coalesce show
    Show coalesce status.

    phy <phyname> coalesce disable
    Disable coalesce.

    phy <phyname> coalesce enable <config-file>
    Enable coalesce with given configuration.
    The configuration file contains coalesce rules:
    delay=<delay>
    condition=<condition>
    patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
    delay=<delay>
    condition=<condition>
    patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
    ...
    delay: maximum coalescing delay in msec.
    condition: 1/0 i.e. 'not match'/'match' the patterns
    patterns: each pattern is given as a bytestring with '-' in
    places where any byte may be present, e.g. 00:11:22:-:44 will
    match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. Offset and
    pattern should be separated by '+', e.g. 18+43:34:00:12 will
    match '43:34:00:12' after 18 bytes of offset in Rx packet.


    dev <devname> roc start <freq> <time in ms>


    wdev <idx> p2p stop


    wdev <idx> p2p start


    phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
    Set a bitmap of allowed antennas to use for TX and RX.
    The driver may reject antenna configurations it cannot support.

    dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
    Specify transmit power level and setting type.

    phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
    Specify transmit power level and setting type.

    phy <phyname> set distance <distance>
    Set appropriate coverage class for given link distance in meters.
    Valid values: 0 - 114750

    phy <phyname> set coverage <coverage class>
    Set coverage class (1 for every 3 usec of air propagation time).
    Valid values: 0 - 255.

    phy <phyname> set netns <pid>
    Put this wireless device into a different network namespace

    phy <phyname> set retry [short <limit>] [long <limit>]
    Set retry limit.

    phy <phyname> set rts <rts threshold|off>
    Set rts threshold.

    phy <phyname> set frag <fragmentation threshold|off>
    Set fragmentation threshold.

    dev <devname> set channel <channel> [HT20|HT40+|HT40-]
    phy <phyname> set channel <channel> [HT20|HT40+|HT40-]
    dev <devname> set freq <freq> [HT20|HT40+|HT40-]
    dev <devname> set freq <control freq> [20|40|80|80+80|160] [<center freq 1>] [<center freq 2>]
    phy <phyname> set freq <freq> [HT20|HT40+|HT40-]
    Set frequency/channel the hardware is using, including HT
    configuration.

    phy <phyname> set name <new name>
    Rename this wireless device.

    dev <devname> set mcast_rate <rate in Mbps>
    Set the multicast bitrate.

    dev <devname> set peer <MAC address>
    Set interface WDS peer.

    dev <devname> set noack_map <map>
    Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)

    dev <devname> set 4addr <on|off>
    Set interface 4addr (WDS) mode.

    dev <devname> set type <type>
    Set interface type/mode.
    Valid interface types are: managed, ibss, monitor, mesh, wds.

    dev <devname> set meshid <meshid>
    dev <devname> set monitor <flag>*
    Set monitor flags. Valid flags are:
    none: no special flags
    fcsfail: show frames with FCS errors
    control: show control frames
    otherbss: show frames from other BSSes
    cook: use cooked mode
    active: use active mode (ACK incoming unicast packets)

    dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
    Set mesh parameter (run command without any to see available ones).

    dev <devname> set power_save <on|off>
    Set power save state to on or off.

    dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]
    Sets up the specified rate masks.
    Not passing any arguments would clear the existing mask (if any).

    dev <devname> get mesh_param [<param>]
    Retrieve mesh parameter (run command without any to see available ones).

    dev <devname> get power_save <param>
    Retrieve power save state.


    Commands that use the netdev ('dev') can also be given the
    'wdev' instead to identify the device.

    You can omit the 'phy' or 'dev' if the identification is unique,
    e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)

    Do NOT screenscrape this tool, we don't consider its output stable.

    It seems to me that it's not recognizing the command?

    Running calibrator before the configure-device:

    var-som-mx6 login: root
    root@var-som-mx6:~# cd /usr/share/wl18xx
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 plt power_mode on
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt tune_channel 48 1 1
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt set_tx_power 20000 0 1 48 0 0 1 1 0 0 0 0
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt start_tx 500 4 500 0 0 1 0 0 54:4a:16:3b:c2:0d 64:00:6a:5a:91:96 0
    Calibrator:: Starting TX Simulation (delay=500, rate=4, size=500, mode=0
    data_type=0, BW=0, gi=1, opt1=0x0, opt2=0x0
    src=54:4a:16:3b:c2:0d
    dst=64:00:6a:5a:91:96)...

    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt stop_tx
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 plt power_mode off

    Running calibrator after the configure-device:

    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 plt power_mode on
    Usage: calibrator [options] command
    Options:
    --debug enable netlink debugging
    --version show version (0.80)
    Commands:
    set fem_manuf <0|1|2|3> [<nvs file>]
    set autofem <0-manual|1-auto> [<nvs file>]
    set upd_nvs <ini file> [<nvs infile>] [<nvs_outfile>]
    set ref_nvs <ini file> [<nvs file>]
    set nvs_mac <nvs file> <mac addr>
    get hw_version <device name>
    get drv_info <device name>
    get info_nvs [<nvs file>]
    get dump_nvs [<nvs file>]
    get nvs_mac [<nvs filename>]
    help
    dev <devname> plt set_mac <nvs file> [<MAC address>|from_fuse|default]
    dev <devname> plt get_mac
    plt autocalibrate <dev> <module path> <ini file1> <nvs file> [<MAC address>|from_fuse|default]
    plt calibrate [<single|dual>]
    plt rx_statistics
    dev <devname> plt get_rx_statcs
    dev <devname> plt reset_rx_statcs
    dev <devname> plt stop_rx_statcs
    dev <devname> plt start_rx_statcs
    dev <devname> plt tx_stop
    dev <devname> plt tx_cont <delay> <rate> <size> <amount> <power>
    <seed> <pkt mode> <DC on/off> <gi> <preamble>
    <type> <scramble> <clpc> <seq nbr mode> <dest mac>
    dev <devname> plt tx_tone <tone type 1|2> <power 0 - 10000>
    dev <devname> plt tx_bip <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> [<nvs file>]
    dev <devname> plt nvs_ver <arch>
    phy <phyname> plt nvs_ver <device name>
    dev <devname> plt ref_point <voltage> <power> <subband>
    dev <devname> plt tune_channel <band> <channel>
    dev <devname> plt power_mode <on|off|fem_detect|chip_awake>
    dev <devname> wl18xx_plt stop_tx
    dev <devname> wl18xx_plt start_tx <delay> <rate> <size> <mode> <data_type> <gi> <options1> <options2> <source MAC> <dest MAC> <channel-width>
    dev <devname> wl18xx_plt get_rx_stats
    dev <devname> wl18xx_plt stop_rx
    dev <devname> wl18xx_plt start_rx <source address> <destination address>
    dev <devname> wl18xx_plt tune_channel <channel> <band> <bandwidth>
    dev <devname> wl18xx_plt set_tx_power <output_power> <level> <band> <channel_number> <primary_channel_location> <antenna> <non_serving_channel> <channel_limitation> <internal> <gain_calculation_mode> <analog_gain_control_id> <post_dpd_gain>
    dev <devname> wl18xx_plt set_antenna_mode_24G <mac_prim_rx_chain> <mac_prim_tx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en> <mac_tx_chain2_en>
    dev <devname> wl18xx_plt set_antenna_mode_5G <mac_prim_rx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en>
    dev <devname> wl18xx_plt phy_reg_read <addr>
    dev <devname> wl18xx_plt phy_reg_write <addr> <data>
    dev <devname> wl18xx_plt tx_tone_start <mode> <bin index> <antenna mode> <gain index>
    dev <devname> wl18xx_plt tx_tone_stop
    dev <devname> wl18xx_plt set_antenna_diversity_5G <mode>
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 plt power_mode on
    Usage: calibrator [options] command
    Options:
    --debug enable netlink debugging
    --version show version (0.80)
    Commands:
    set fem_manuf <0|1|2|3> [<nvs file>]
    set autofem <0-manual|1-auto> [<nvs file>]
    set upd_nvs <ini file> [<nvs infile>] [<nvs_outfile>]
    set ref_nvs <ini file> [<nvs file>]
    set nvs_mac <nvs file> <mac addr>
    get hw_version <device name>
    get drv_info <device name>
    get info_nvs [<nvs file>]
    get dump_nvs [<nvs file>]
    get nvs_mac [<nvs filename>]
    help
    dev <devname> plt set_mac <nvs file> [<MAC address>|from_fuse|default]
    dev <devname> plt get_mac
    plt autocalibrate <dev> <module path> <ini file1> <nvs file> [<MAC address>|from_fuse|default]
    plt calibrate [<single|dual>]
    plt rx_statistics
    dev <devname> plt get_rx_statcs
    dev <devname> plt reset_rx_statcs
    dev <devname> plt stop_rx_statcs
    dev <devname> plt start_rx_statcs
    dev <devname> plt tx_stop
    dev <devname> plt tx_cont <delay> <rate> <size> <amount> <power>
    <seed> <pkt mode> <DC on/off> <gi> <preamble>
    <type> <scramble> <clpc> <seq nbr mode> <dest mac>
    dev <devname> plt tx_tone <tone type 1|2> <power 0 - 10000>
    dev <devname> plt tx_bip <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> [<nvs file>]
    dev <devname> plt nvs_ver <arch>
    phy <phyname> plt nvs_ver <device name>
    dev <devname> plt ref_point <voltage> <power> <subband>
    dev <devname> plt tune_channel <band> <channel>
    dev <devname> plt power_mode <on|off|fem_detect|chip_awake>
    dev <devname> wl18xx_plt stop_tx
    dev <devname> wl18xx_plt start_tx <delay> <rate> <size> <mode> <data_type> <gi> <options1> <options2> <source MAC> <dest MAC> <channel-width>
    dev <devname> wl18xx_plt get_rx_stats
    dev <devname> wl18xx_plt stop_rx
    dev <devname> wl18xx_plt start_rx <source address> <destination address>
    dev <devname> wl18xx_plt tune_channel <channel> <band> <bandwidth>
    dev <devname> wl18xx_plt set_tx_power <output_power> <level> <band> <channel_number> <primary_channel_location> <antenna> <non_serving_channel> <channel_limitation> <internal> <gain_calculation_mode> <analog_gain_control_id> <post_dpd_gain>
    dev <devname> wl18xx_plt set_antenna_mode_24G <mac_prim_rx_chain> <mac_prim_tx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en> <mac_tx_chain2_en>
    dev <devname> wl18xx_plt set_antenna_mode_5G <mac_prim_rx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en>
    dev <devname> wl18xx_plt phy_reg_read <addr>
    dev <devname> wl18xx_plt phy_reg_write <addr> <data>
    dev <devname> wl18xx_plt tx_tone_start <mode> <bin index> <antenna mode> <gain index>
    dev <devname> wl18xx_plt tx_tone_stop
    dev <devname> wl18xx_plt set_antenna_diversity_5G <mode>
    root@var-som-mx6:/usr/share/wl18xx# calibrator wlan0 wl18xx_plt tune_channel 48 1 1
    Usage: calibrator [options] command
    Options:
    --debug enable netlink debugging
    --version show version (0.80)
    Commands:
    set fem_manuf <0|1|2|3> [<nvs file>]
    set autofem <0-manual|1-auto> [<nvs file>]
    set upd_nvs <ini file> [<nvs infile>] [<nvs_outfile>]
    set ref_nvs <ini file> [<nvs file>]
    set nvs_mac <nvs file> <mac addr>
    get hw_version <device name>
    get drv_info <device name>
    get info_nvs [<nvs file>]
    get dump_nvs [<nvs file>]
    get nvs_mac [<nvs filename>]
    help
    dev <devname> plt set_mac <nvs file> [<MAC address>|from_fuse|default]
    dev <devname> plt get_mac
    plt autocalibrate <dev> <module path> <ini file1> <nvs file> [<MAC address>|from_fuse|default]
    plt calibrate [<single|dual>]
    plt rx_statistics
    dev <devname> plt get_rx_statcs
    dev <devname> plt reset_rx_statcs
    dev <devname> plt stop_rx_statcs
    dev <devname> plt start_rx_statcs
    dev <devname> plt tx_stop
    dev <devname> plt tx_cont <delay> <rate> <size> <amount> <power>
    <seed> <pkt mode> <DC on/off> <gi> <preamble>
    <type> <scramble> <clpc> <seq nbr mode> <dest mac>
    dev <devname> plt tx_tone <tone type 1|2> <power 0 - 10000>
    dev <devname> plt tx_bip <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> [<nvs file>]
    dev <devname> plt nvs_ver <arch>
    phy <phyname> plt nvs_ver <device name>
    dev <devname> plt ref_point <voltage> <power> <subband>
    dev <devname> plt tune_channel <band> <channel>
    dev <devname> plt power_mode <on|off|fem_detect|chip_awake>
    dev <devname> wl18xx_plt stop_tx
    dev <devname> wl18xx_plt start_tx <delay> <rate> <size> <mode> <data_type> <gi> <options1> <options2> <source MAC> <dest MAC> <channel-width>
    dev <devname> wl18xx_plt get_rx_stats
    dev <devname> wl18xx_plt stop_rx
    dev <devname> wl18xx_plt start_rx <source address> <destination address>
    dev <devname> wl18xx_plt tune_channel <channel> <band> <bandwidth>
    dev <devname> wl18xx_plt set_tx_power <output_power> <level> <band> <channel_number> <primary_channel_location> <antenna> <non_serving_channel> <channel_limitation> <internal> <gain_calculation_mode> <analog_gain_control_id> <post_dpd_gain>
    dev <devname> wl18xx_plt set_antenna_mode_24G <mac_prim_rx_chain> <mac_prim_tx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en> <mac_tx_chain2_en>
    dev <devname> wl18xx_plt set_antenna_mode_5G <mac_prim_rx_chain> <mac_rx_chain1_en> <mac_rx_chain2_en> <mac_tx_chain1_en>
    dev <devname> wl18xx_plt phy_reg_read <addr>
    dev <devname> wl18xx_plt phy_reg_write <addr> <data>
    dev <devname> wl18xx_plt tx_tone_start <mode> <bin index> <antenna mode> <gain index>
    dev <devname> wl18xx_plt tx_tone_stop
    dev <devname> wl18xx_plt set_antenna_diversity_5G <mode>

    Boot logs:

    U-Boot SPL 2013.10 (Dec 31 2015 - 13:00:28)
    i.MX6Q SOC P-POP DDR EEPROM configuration
    Part number:
    Assembly:
    Date of production:
    Ram size 1024
    Boot Device : MMC1
    Load image from RAW...


    U-Boot 2013.10 (Dec 31 2015 - 13:00:28)

    CPU: Freescale i.MX6Q rev1.5 at 792 MHz
    CPU: Temperature 44 C, calibration data: 0x5834e769
    Reset cause: POR
    Board: Variscite VAR_SOM_MX6 Quad-POP
    I2C: ready
    DRAM: 1 GiB
    Found PFUZE100! deviceid=10,revid=21
    Set POP Voltage
    MMC: FSL_SDHC: 0, FSL_SDHC: 1
    In: serial
    Out: serial
    Err: serial
    Board: Variscite VAR_SOM_MX6 Quad-POP
    Net: using phy at 7
    got MAC-1 address from fuse: f8:dc:7a:04:5c:8f
    FEC [PRIME]
    Warning: FEC MAC addresses don't match:
    Address in SROM is f8:dc:7a:04:5c:8f
    Address in environment is f8:dc:7a:04:5c:8b

    Hit any key to stop autoboot: 0
    mmc0 is current device
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uImage
    4310624 bytes read in 208 ms (19.8 MiB/s)
    Booting from mmc ...
    reading imx6q-var-dart.dtb
    44421 bytes read in 19 ms (2.2 MiB/s)
    ## Booting kernel from Legacy Image at 12000000 ...
    Image Name: Linux-3.14.38-6QP+g04e862b
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4310560 Bytes = 4.1 MiB
    Load Address: 10008000
    Entry Point: 10008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 18000000
    Booting using the fdt blob at 0x18000000
    Loading Kernel Image ... OK
    Using Device Tree in place at 18000000, end 1800dd84
    switched to ldo_bypass mode!

    Starting kernel ...

    failed to set parent of clk ldb_di0_sel to pll5_video_div: -38
    failed to set parent of clk ldb_di1_sel to pll5_video_div: -38
    imx6q-pinctrl 20e0000.iomuxc: Pin(MX6Q_PAD_ENET_RXD0) does not support config function
    imx6q-pinctrl 20e0000.iomuxc: pin_config_set op failed for pin 121
    imx6q-pinctrl 20e0000.iomuxc: Error applying setting, reverse things back
    imx6q-pinctrl 20e0000.iomuxc: failed to select default state
    mxc_sdc_fb fb.25: Can't get fb option for mxcfb1!
    gpmi-nand 112000.gpmi-nand: driver registration failed: -19
    of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02000000/spba-bus@02000000/ecspi@02008000' missing or empty
    spi_imx 2008000.ecspi: cannot get the TX DMA channel!
    spi_imx 2008000.ecspi: dma setup error,use pio instead
    fsl-hdmi-dai hdmi_audio.3: failed to probe. Load HDMI-video first.
    imx-audio-hdmi sound-hdmi.23: initialize HDMI-audio failed. load HDMI-video first!
    INIT: version 2.88 booting
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev: /proc/version /proc/cmdline /proc/devices
    udev: lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at /etc/udev/cache.data
    udev: against the current sysconf at /dev/shm/udev.cache
    ar0130cs 2-0010: Failed to write register 0x301a! ret=-5
    ar0130cs 2-0010: Failed to reset the sensor
    ERROR: v4l2 capture: slave not found!
    ar0130cs 2-0010: Failed to read register 0x0030!
    ar0130cs 2-0010: Failed to get chip id
    bootlogd: cannot allocate pseudo tty: No such file or directory
    Populating dev cache
    ALSA: Restoring mixer settings...
    No state is present for card tlv320aic3xaudi
    Found hardware: "tlv320aic3x-aud" "" "" "" ""
    INIT: Entering runlevel: 5ing a gene
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting rpcbind daemon...done.
    Starting syslogd/klogd: done
    coreapp!

    __ __ _ _ _
    \ \ / / (_) (_) |
    \ \ / /_ _ _ __ _ ___ ___ _| |_ ___
    \ \/ / _` | '__| / __|/ __| | __/ _ \
    \ / (_| | | | \__ \ (__| | || __/
    \/ \__,_|_| |_|___/\___|_|\__\___|

    2015 Variscite, Ltd.
    Yocto Fido Rev 3.14.38_6qp-var01
    << VAR-SOM-MX6 >>

    Poky (Yocto Project Reference Distro) 1.8 var-som-mx6 /dev/ttymxc0

    var-som-mx6 login:

  • Hi,

    Can you please clarify the below:

    (1) Host Platform
    (2) wl18xx release version.
    (3) How did you build the drivers?

    Regards,
    Gigi Joseph.
  • I don't actually know the answer to any of those. Do you know how I could find out? Someone at work loaded the linux driver onto an SD card, which is what's in the chip. I've never used linux before so I'm a little lost. 

  • Hi,

    I suspect something's wrong with the build...
    To know the driver/firmware versions, please see: processors.wiki.ti.com/.../WL18xx_Driver_Debug

    The build process is at: processors.wiki.ti.com/.../WiLink8_Linux_Getting_Started_Guide depending on your host platform.

    Regards,
    Gigi Joseph.