Home
last modified time | relevance | path

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

/drivers/net/wireless/mediatek/mt7601u/
Dmac.c535 u8 iv_data[8]; in mt76_mac_wcid_set_key() local
546 memset(iv_data, 0, sizeof(iv_data)); in mt76_mac_wcid_set_key()
548 iv_data[3] = key->keyidx << 6; in mt76_mac_wcid_set_key()
553 iv_data[0] |= 1; in mt76_mac_wcid_set_key()
554 iv_data[3] |= 0x20; in mt76_mac_wcid_set_key()
557 mt7601u_wr_copy(dev, MT_WCID_IV(idx), iv_data, sizeof(iv_data)); in mt76_mac_wcid_set_key()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c111 u8 iv_data[8]; in mt76x02_mac_wcid_set_key() local
121 memset(iv_data, 0, sizeof(iv_data)); in mt76x02_mac_wcid_set_key()
128 iv_data[3] = key->keyidx << 6; in mt76x02_mac_wcid_set_key()
130 iv_data[3] |= 0x20; in mt76x02_mac_wcid_set_key()
131 put_unaligned_le32(pn >> 16, &iv_data[4]); in mt76x02_mac_wcid_set_key()
135 iv_data[0] = (pn >> 8) & 0xff; in mt76x02_mac_wcid_set_key()
136 iv_data[1] = (iv_data[0] | 0x20) & 0x7f; in mt76x02_mac_wcid_set_key()
137 iv_data[2] = pn & 0xff; in mt76x02_mac_wcid_set_key()
139 put_unaligned_le16((pn & 0xffff), &iv_data[0]); in mt76x02_mac_wcid_set_key()
143 mt76_wr_copy(dev, MT_WCID_IV(idx), iv_data, sizeof(iv_data)); in mt76x02_mac_wcid_set_key()