mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 23:40:43 +01:00
netdev: parse expected throughput in netdev_get_station
This commit is contained in:
parent
0ba73ec139
commit
93b5a5a4ae
@ -478,6 +478,15 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr,
|
|||||||
info->have_tx_mcs = true;
|
info->have_tx_mcs = true;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NL80211_STA_INFO_EXPECTED_THROUGHPUT:
|
||||||
|
if (len != 4)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
info->expected_throughput = l_get_u32(data);
|
||||||
|
info->have_expected_throughput = true;
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,11 +132,14 @@ struct netdev_station_info {
|
|||||||
uint32_t tx_bitrate;
|
uint32_t tx_bitrate;
|
||||||
uint8_t tx_mcs;
|
uint8_t tx_mcs;
|
||||||
|
|
||||||
|
uint32_t expected_throughput;
|
||||||
|
|
||||||
bool have_cur_rssi : 1;
|
bool have_cur_rssi : 1;
|
||||||
bool have_rx_mcs : 1;
|
bool have_rx_mcs : 1;
|
||||||
bool have_tx_mcs : 1;
|
bool have_tx_mcs : 1;
|
||||||
bool have_rx_bitrate : 1;
|
bool have_rx_bitrate : 1;
|
||||||
bool have_tx_bitrate : 1;
|
bool have_tx_bitrate : 1;
|
||||||
|
bool have_expected_throughput : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*netdev_get_station_cb_t)(const struct netdev_station_info *info,
|
typedef void (*netdev_get_station_cb_t)(const struct netdev_station_info *info,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user