Fix memory leak in P2P build without MLME
The ieee80211_sta_free_hw_features() function is now used outside the MLME code, so better make sure it gets included in the build to avoid leaking memory.
This commit is contained in:
parent
e11f5a2cbc
commit
2f9c6aa665
4 changed files with 19 additions and 25 deletions
|
@ -37,8 +37,6 @@ int ieee80211_sta_associate(struct wpa_supplicant *wpa_s,
|
|||
struct wpa_driver_associate_params *params);
|
||||
int ieee80211_sta_get_ssid(struct wpa_supplicant *wpa_s, u8 *ssid,
|
||||
size_t *len);
|
||||
void ieee80211_sta_free_hw_features(struct hostapd_hw_modes *hw_features,
|
||||
size_t num_hw_features);
|
||||
void ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len,
|
||||
struct ieee80211_rx_status *rx_status);
|
||||
struct wpa_scan_results *
|
||||
|
@ -91,12 +89,6 @@ static inline int ieee80211_sta_get_ssid(struct wpa_supplicant *wpa_s,
|
|||
return -1;
|
||||
}
|
||||
|
||||
static inline void
|
||||
ieee80211_sta_free_hw_features(struct hostapd_hw_modes *hw_features,
|
||||
size_t num_hw_features)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void
|
||||
ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len,
|
||||
struct ieee80211_rx_status *rx_status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue