2018-09-22 11:45:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MT76x02_PHY_H
|
|
|
|
#define __MT76x02_PHY_H
|
|
|
|
|
|
|
|
#include "mt76x02_regs.h"
|
|
|
|
|
|
|
|
void mt76x02_add_rate_power_offset(struct mt76_rate_power *r, int offset);
|
2018-10-07 09:45:19 +00:00
|
|
|
void mt76x02_phy_set_txpower(struct mt76x02_dev *dev, int txp_0, int txp_2);
|
2018-09-22 11:45:30 +00:00
|
|
|
void mt76x02_limit_rate_power(struct mt76_rate_power *r, int limit);
|
|
|
|
int mt76x02_get_max_rate_power(struct mt76_rate_power *r);
|
2018-10-07 09:45:19 +00:00
|
|
|
void mt76x02_phy_set_rxpath(struct mt76x02_dev *dev);
|
|
|
|
void mt76x02_phy_set_txdac(struct mt76x02_dev *dev);
|
|
|
|
int mt76x02_phy_get_min_avg_rssi(struct mt76x02_dev *dev);
|
2018-09-22 11:45:30 +00:00
|
|
|
|
|
|
|
#endif /* __MT76x02_PHY_H */
|