Skip to content
Snippets Groups Projects
  1. Nov 03, 2020
    • Bryan O'Donoghue's avatar
      wcn36xx: Enable firmware offloaded keepalive · 8b28bf54
      Bryan O'Donoghue authored
      
      This patch calls wcn36xx_smd_keep_alive_req() on the STA patch immediately
      after associating with an AP.
      
      This will cause the firmware to send a NULL packet out to the AP every 30
      seconds, thus offloading keep-alive processing from the SoC to the
      firmware.
      
      Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
    • Bryan O'Donoghue's avatar
      wcn36xx: Enable firmware link monitoring · 19ce357f
      Bryan O'Donoghue authored
      
      This patch switches on CONNECTION_MONITOR. Once done it is up to the
      firmware to send keep alive and to monitor the link state.
      
      Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
      19ce357f
    • Bryan O'Donoghue's avatar
      wcn36xx: Set LINK_FAIL_TX_CNT to 1000 on all wcn36xx · 1703fcb6
      Bryan O'Donoghue authored
      
      The firmware parameter LINK_FAIL_TX_CNT maps to the prima configuration
      file parameter gLinkFailTxCnt and is described as:
      
      quote: " If within gLinkFailTimeout period(values is mentioned in msec) if
               FW doesn't receive acks for gLinkFailTxCnt number of packets, then
               link will be disconnected."
      
      The downstream description sets a minimum value of 1000 a maximum value of
      60000 and a default value of 6000, however it appears that unless we
      actually set this value deliberately firmware defaults it to 0.
      
      Setting this value to non-zero results in the firmware doing link
      monitoring. The working example from downstream paradoxically sets the
      value to 200, here we opt to set the value to the minimum stipulated in the
      configuration file 1000.
      
      In conjunction with ieee80211_hw_set(wcn->hw, CONNECTION_MONITOR); this
      change effects offload of link monitoring to the firmware.
      
      Tested with:
      'CNSS-PR-2-0-1-2-c1-74-130449-3' wcn3620
      'CNSS-PR-2-0-1-2-c1-00083'       wcn3680
      
      Signed-off-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
      1703fcb6
  2. Oct 30, 2020
  3. Oct 29, 2020
Loading