mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt76: add support for an extra wiphy in the rx path
This is preparation for supporting multiple wiphys per device to support the concurrent dual-band feature of MT7615D Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -433,6 +433,7 @@ struct mt76_rx_status {
|
||||
|
||||
u8 iv[6];
|
||||
|
||||
u8 ext_phy:1;
|
||||
u8 aggr:1;
|
||||
u8 tid;
|
||||
u16 seqno;
|
||||
@@ -457,6 +458,8 @@ struct mt76_phy {
|
||||
struct mt76_dev {
|
||||
struct mt76_phy phy; /* must be first */
|
||||
|
||||
struct mt76_phy *phy2;
|
||||
|
||||
struct ieee80211_hw *hw;
|
||||
struct cfg80211_chan_def chandef;
|
||||
struct ieee80211_channel *main_chan;
|
||||
@@ -640,6 +643,14 @@ void mt76_seq_puts_array(struct seq_file *file, const char *str,
|
||||
int mt76_eeprom_init(struct mt76_dev *dev, int len);
|
||||
void mt76_eeprom_override(struct mt76_dev *dev);
|
||||
|
||||
static inline struct ieee80211_hw *
|
||||
mt76_phy_hw(struct mt76_dev *dev, bool phy_ext)
|
||||
{
|
||||
if (phy_ext && dev->phy2)
|
||||
return dev->phy2->hw;
|
||||
return dev->phy.hw;
|
||||
}
|
||||
|
||||
static inline u8 *
|
||||
mt76_get_txwi_ptr(struct mt76_dev *dev, struct mt76_txwi_cache *t)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user