diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-11-08 14:11:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-10 14:13:19 +0100 |
commit | bdc4f21c530da8e6441af4e2b48c12114008ccae (patch) | |
tree | 130c1b3f6fb45ad826d7ed75d8a165426df8c9e4 /freebsd | |
parent | wpa: Import all files for KRACK patch. (diff) | |
download | rtems-libbsd-bdc4f21c530da8e6441af4e2b48c12114008ccae.tar.bz2 |
wpa: Port to new files to RTEMS.
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/contrib/wpa/src/rsn_supp/tdls.c | 2 | ||||
-rw-r--r-- | freebsd/contrib/wpa/wpa_supplicant/wnm_sta.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/contrib/wpa/src/rsn_supp/tdls.c b/freebsd/contrib/wpa/src/rsn_supp/tdls.c index 8d0359d1..c8be56aa 100644 --- a/freebsd/contrib/wpa/src/rsn_supp/tdls.c +++ b/freebsd/contrib/wpa/src/rsn_supp/tdls.c @@ -24,6 +24,7 @@ #include "drivers/driver.h" #include "l2_packet/l2_packet.h" +#if defined(__rtems__) && defined(CONFIG_TDLS) #ifdef CONFIG_TDLS_TESTING #define TDLS_TESTING_LONG_FRAME BIT(0) #define TDLS_TESTING_ALT_RSN_IE BIT(1) @@ -3008,3 +3009,4 @@ int wpa_tdls_disable_chan_switch(struct wpa_sm *sm, const u8 *addr) peer->chan_switch_enabled = 0; return 0; } +#endif /* __rtems__ && CONFIG_TDLS */ diff --git a/freebsd/contrib/wpa/wpa_supplicant/wnm_sta.c b/freebsd/contrib/wpa/wpa_supplicant/wnm_sta.c index ea737e31..34332e2a 100644 --- a/freebsd/contrib/wpa/wpa_supplicant/wnm_sta.c +++ b/freebsd/contrib/wpa/wpa_supplicant/wnm_sta.c @@ -26,6 +26,7 @@ #define MAX_TFS_IE_LEN 1024 #define WNM_MAX_NEIGHBOR_REPORT 10 +#if defined(__rtems__) && defined(CONFIG_WNM) /* get the TFS IE from driver */ static int ieee80211_11_get_tfs_ie(struct wpa_supplicant *wpa_s, u8 *buf, @@ -1148,3 +1149,4 @@ void ieee802_11_rx_wnm_action(struct wpa_supplicant *wpa_s, break; } } +#endif /* __rtems__ && CONFIG_WNM */ |