1. 12 Dec, 2023 31 commits
  2. 11 Dec, 2023 7 commits
  3. 07 Dec, 2023 2 commits
    • Wang Zhao's avatar
      wifi: mt76: mt7921s: fix workqueue problem causes STA association fail · 92184eae
      Wang Zhao authored
      The ieee80211_queue_work function queues work into the mac80211
      local->workqueue, which is widely used for mac80211 internal
      work processes. In the mt76 driver, both the mt76-sido-status and
      mt76-sdio-net threads enqueue workers to the workqueue with this
      function. However, in some cases, when two workers are enqueued
      to the workqueue almost simultaneously, the second worker may not
      be scheduled immediately and may get stuck for a while.
      This can cause timing issues. To avoid these timing
      conflicts caused by worker scheduling, replace the worker
      with an independent thread.
      
      Fixes: 48fab5bb ("mt76: mt7921: introduce mt7921s support")
      Signed-off-by: default avatarWang Zhao <wang.zhao@mediatek.com>
      Signed-off-by: default avatarDeren Wu <deren.wu@mediatek.com>
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      92184eae
    • Uwe Kleine-König's avatar
      wifi: mt76: Convert to platform remove callback returning void · d0797464
      Uwe Kleine-König authored
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is ignored (apart
      from emitting a warning) and this typically results in resource leaks.
      
      To improve here there is a quest to make the remove callback return
      void. In the first step of this quest all drivers are converted to
      .remove_new(), which already returns void. Eventually after all drivers
      are converted, .remove_new() will be renamed to .remove().
      
      Trivially convert the three mt76 drivers from always returning zero in
      the remove callback to the void returning variant.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Reviewed-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      d0797464