Home
last modified time | relevance | path

Searched refs:tx_power_tlv (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.c2117 struct mt76_connac_tx_power_limit_tlv tx_power_tlv = {}; in mt76_connac_mcu_rate_txpower_band() local
2122 msg_len = sizeof(tx_power_tlv) + num_ch * sizeof(sku_tlbv); in mt76_connac_mcu_rate_txpower_band()
2129 skb_reserve(skb, sizeof(tx_power_tlv)); in mt76_connac_mcu_rate_txpower_band()
2131 BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(tx_power_tlv.alpha2)); in mt76_connac_mcu_rate_txpower_band()
2132 memcpy(tx_power_tlv.alpha2, dev->alpha2, sizeof(dev->alpha2)); in mt76_connac_mcu_rate_txpower_band()
2133 tx_power_tlv.n_chan = num_ch; in mt76_connac_mcu_rate_txpower_band()
2137 tx_power_tlv.band = 1; in mt76_connac_mcu_rate_txpower_band()
2140 tx_power_tlv.band = 3; in mt76_connac_mcu_rate_txpower_band()
2143 tx_power_tlv.band = 2; in mt76_connac_mcu_rate_txpower_band()
2161 tx_power_tlv.last_msg = ch_list[idx] == last_ch; in mt76_connac_mcu_rate_txpower_band()
[all …]
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7925/
Dmcu.c3381 struct mt7925_tx_power_limit_tlv *tx_power_tlv; in mt7925_mcu_rate_txpower_band() local
3386 msg_len = sizeof(*tx_power_tlv) + num_ch * sku_len; in mt7925_mcu_rate_txpower_band()
3393 tx_power_tlv = (struct mt7925_tx_power_limit_tlv *) in mt7925_mcu_rate_txpower_band()
3394 skb_put(skb, sizeof(*tx_power_tlv)); in mt7925_mcu_rate_txpower_band()
3396 BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(tx_power_tlv->alpha2)); in mt7925_mcu_rate_txpower_band()
3397 memcpy(tx_power_tlv->alpha2, dev->alpha2, sizeof(dev->alpha2)); in mt7925_mcu_rate_txpower_band()
3398 tx_power_tlv->n_chan = num_ch; in mt7925_mcu_rate_txpower_band()
3399 tx_power_tlv->tag = cpu_to_le16(0x1); in mt7925_mcu_rate_txpower_band()
3400 tx_power_tlv->len = cpu_to_le16(sizeof(*tx_power_tlv)); in mt7925_mcu_rate_txpower_band()
3404 tx_power_tlv->band = 1; in mt7925_mcu_rate_txpower_band()
[all …]