Skip to content

Commit

Permalink
wifi: mt76: mt7915: do not check state before configuring implicit be…
Browse files Browse the repository at this point in the history
…amform

Do not need to check running state before configuring implicit Tx
beamform. It is okay to configure implicit Tx beamform in run time.
Noted that the existing connected stations will be applied for new
configuration only if they reconnected to the interface.

Fixes: 6d6dc98 ("mt76: mt7915: add implicit Tx beamforming support")
Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Howard Hsu authored and Felix Fietkau committed Sep 15, 2022
1 parent 9be57ad commit d2b5bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ mt7915_implicit_txbf_set(void *data, u64 val)
{
struct mt7915_dev *dev = data;

if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state))
return -EBUSY;

/* The existing connected stations shall reconnect to apply
* new implicit txbf configuration.
*/
dev->ibf = !!val;

return mt7915_mcu_set_txbf(dev, MT_BF_TYPE_UPDATE);
Expand Down

0 comments on commit d2b5bb6

Please sign in to comment.