diff options
author | Andrei Otcheretianski <andrei.otcheretianski@intel.com> | 2015-09-08 12:46:08 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-09-25 21:02:55 +0300 |
commit | 22264b3c619420276cabd74283d9791c0df880ab (patch) | |
tree | ef1859b3c9d224c8418f1011758362c9b7a4102a | |
parent | 241c33335beadd91e344e4bb0e76d113ea500720 (diff) | |
download | hostap-22264b3c619420276cabd74283d9791c0df880ab.tar.gz |
Fix get_shared_radio_freqs_data() used-by flags setting
Fix an iteration bug in get_shared_radio_freqs_data when building
freqs_data array. Only the last used-by flag was maintained instead of
making this a bitfield of all found uses.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 4805f8391..ef55fdcf7 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -5568,7 +5568,7 @@ int get_shared_radio_freqs_data(struct wpa_supplicant *wpa_s, freqs_data[idx++].freq = freq; if (ifs->current_ssid->mode == WPAS_MODE_INFRA) { - freqs_data[i].flags = ifs->current_ssid->p2p_group ? + freqs_data[i].flags |= ifs->current_ssid->p2p_group ? WPA_FREQ_USED_BY_P2P_CLIENT : WPA_FREQ_USED_BY_INFRA_STATION; } |