hostapd: Add Min/Max Transmit Power Capability into STA command
This provides access to the Minimum/Maximum Transmit Power Capabilitie fileds (the nominal minimum/maximum transmit power with which the STA is capable of transmitting in the current channel; signed integer in units of decibels relative to 1 mW). Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
This commit is contained in:
parent
33c8bbd8ca
commit
ba72b4b126
5 changed files with 27 additions and 0 deletions
|
@ -352,6 +352,10 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
|
|||
elems->rsn_ie_len = elen;
|
||||
break;
|
||||
case WLAN_EID_PWR_CAPABILITY:
|
||||
if (elen < 2)
|
||||
break;
|
||||
elems->power_capab = pos;
|
||||
elems->power_capab_len = elen;
|
||||
break;
|
||||
case WLAN_EID_SUPPORTED_CHANNELS:
|
||||
elems->supp_channels = pos;
|
||||
|
|
|
@ -79,6 +79,7 @@ struct ieee802_11_elems {
|
|||
const u8 *fils_pk;
|
||||
const u8 *fils_nonce;
|
||||
const u8 *owe_dh;
|
||||
const u8 *power_capab;
|
||||
|
||||
u8 ssid_len;
|
||||
u8 supp_rates_len;
|
||||
|
@ -122,6 +123,7 @@ struct ieee802_11_elems {
|
|||
u8 fils_wrapped_data_len;
|
||||
u8 fils_pk_len;
|
||||
u8 owe_dh_len;
|
||||
u8 power_capab_len;
|
||||
|
||||
struct mb_ies_info mb_ies;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue