mac.h 447 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: ISC */
  2. /*
  3. * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
  4. */
  5. #ifndef __MT76x2_MAC_H
  6. #define __MT76x2_MAC_H
  7. #include "mt76x2.h"
  8. struct mt76x02_dev;
  9. struct mt76x2_sta;
  10. struct mt76x02_vif;
  11. void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force);
  12. static inline void mt76x2_mac_resume(struct mt76x02_dev *dev)
  13. {
  14. mt76_wr(dev, MT_MAC_SYS_CTRL,
  15. MT_MAC_SYS_CTRL_ENABLE_TX |
  16. MT_MAC_SYS_CTRL_ENABLE_RX);
  17. }
  18. #endif