aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-02-20 11:46:10 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-03 13:10:50 (GMT)
commit2b6e9f91df7acf19998f967fcc6c5f4bb911d1d8 (patch)
tree720bfc9711c364376e752649daad9a1f551ffcb0 /wpa_supplicant/wpa_supplicant_i.h
parent94ad3c3389bd7ab606b692aa4d0f82709b001110 (diff)
downloadhostap-2b6e9f91df7acf19998f967fcc6c5f4bb911d1d8.zip
hostap-2b6e9f91df7acf19998f967fcc6c5f4bb911d1d8.tar.gz
hostap-2b6e9f91df7acf19998f967fcc6c5f4bb911d1d8.tar.bz2
wpa_supplicant: Expose wpas_get_bands() and related API
Expose the functions wpas_get_bands() and wpas_freq_to_band() and the enum wpa_radio_work_band, since they will be needed outside wpa_supplicant.c. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index 1ec2cd8..1b16d28 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -308,11 +308,6 @@ struct wpa_radio {
#define MAX_ACTIVE_WORKS 2
-enum wpa_radio_work_band {
- BAND_2_4_GHZ = BIT(0),
- BAND_5_GHZ = BIT(1),
- BAND_60_GHZ = BIT(2),
-};
/**
* struct wpa_radio_work - Radio work item
@@ -358,6 +353,9 @@ struct wpa_external_work {
unsigned int timeout;
};
+enum wpa_radio_work_band wpas_freq_to_band(int freq);
+unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs);
+
/**
* offchannel_send_action_result - Result of offchannel send Action frame
*/