mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
nl80211: Export available antennas
Export the information which antennas are available for configuration as TX or RX antennas via nl80211. Signed-off-by: Bruno Randolf <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
7f531e03ab
commit
39fd5de447
2 changed files with 14 additions and 0 deletions
|
|
@ -605,6 +605,11 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
|
|||
if (dev->wiphy.flags & WIPHY_FLAG_CONTROL_PORT_PROTOCOL)
|
||||
NLA_PUT_FLAG(msg, NL80211_ATTR_CONTROL_PORT_ETHERTYPE);
|
||||
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX,
|
||||
dev->wiphy.available_antennas_tx);
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX,
|
||||
dev->wiphy.available_antennas_rx);
|
||||
|
||||
if ((dev->wiphy.available_antennas_tx ||
|
||||
dev->wiphy.available_antennas_rx) && dev->ops->get_antenna) {
|
||||
u32 tx_ant = 0, rx_ant = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue