aboutsummaryrefslogtreecommitdiffstats
path: root/src/fst
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-07-26 13:34:35 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-26 15:45:14 (GMT)
commit8f997f044f4d024cd2b775614da1b9fe13f43c38 (patch)
treea6a37de42b12d70ea803d7862f4ccb1a38620109 /src/fst
parent78ca254237960136121dc5ff374170ade5a1e330 (diff)
downloadhostap-8f997f044f4d024cd2b775614da1b9fe13f43c38.zip
hostap-8f997f044f4d024cd2b775614da1b9fe13f43c38.tar.gz
hostap-8f997f044f4d024cd2b775614da1b9fe13f43c38.tar.bz2
FST: Make fst_hw_mode_to_band() non-inline function
There is no need for using an inline function for this. Save a bit in binary size by using a normal function. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/fst')
-rw-r--r--src/fst/fst.c17
-rw-r--r--src/fst/fst_internal.h17
2 files changed, 18 insertions, 16 deletions
diff --git a/src/fst/fst.c b/src/fst/fst.c
index a65b41c..2880870 100644
--- a/src/fst/fst.c
+++ b/src/fst/fst.c
@@ -206,3 +206,20 @@ Boolean fst_are_ifaces_aggregated(struct fst_iface *iface1,
{
return fst_iface_get_group(iface1) == fst_iface_get_group(iface2);
}
+
+
+enum mb_band_id fst_hw_mode_to_band(enum hostapd_hw_mode mode)
+{
+ switch (mode) {
+ case HOSTAPD_MODE_IEEE80211B:
+ case HOSTAPD_MODE_IEEE80211G:
+ return MB_BAND_ID_WIFI_2_4GHZ;
+ case HOSTAPD_MODE_IEEE80211A:
+ return MB_BAND_ID_WIFI_5GHZ;
+ case HOSTAPD_MODE_IEEE80211AD:
+ return MB_BAND_ID_WIFI_60GHZ;
+ default:
+ WPA_ASSERT(0);
+ return MB_BAND_ID_WIFI_2_4GHZ;
+ }
+}
diff --git a/src/fst/fst_internal.h b/src/fst/fst_internal.h
index d5a875f..9fe32b8 100644
--- a/src/fst/fst_internal.h
+++ b/src/fst/fst_internal.h
@@ -28,22 +28,7 @@
fst_printf_group(fst_iface_get_group(iface), (level), "%s: " format, \
fst_iface_get_name(iface), ##__VA_ARGS__)
-static inline enum mb_band_id
-fst_hw_mode_to_band(enum hostapd_hw_mode mode)
-{
- switch (mode) {
- case HOSTAPD_MODE_IEEE80211B:
- case HOSTAPD_MODE_IEEE80211G:
- return MB_BAND_ID_WIFI_2_4GHZ;
- case HOSTAPD_MODE_IEEE80211A:
- return MB_BAND_ID_WIFI_5GHZ;
- case HOSTAPD_MODE_IEEE80211AD:
- return MB_BAND_ID_WIFI_60GHZ;
- default:
- WPA_ASSERT(0);
- return MB_BAND_ID_WIFI_2_4GHZ;
- }
-}
+enum mb_band_id fst_hw_mode_to_band(enum hostapd_hw_mode mode);
struct fst_ctrl_handle {
struct fst_ctrl ctrl;