diff options
author | Joshua Oreman | 2010-05-27 02:52:44 +0200 |
---|---|---|
committer | Michael Brown | 2010-05-27 11:19:14 +0200 |
commit | 2aad3fab233f0235f9a8f677ae7bb402f1647eb6 (patch) | |
tree | c4630d1f9e5a2c9d21b7018c63fe20878d1c00af /src/net/80211 | |
parent | [efi] Fix link order for elf2efi (diff) | |
download | ipxe-2aad3fab233f0235f9a8f677ae7bb402f1647eb6.tar.gz ipxe-2aad3fab233f0235f9a8f677ae7bb402f1647eb6.tar.xz ipxe-2aad3fab233f0235f9a8f677ae7bb402f1647eb6.zip |
[build] Use weak definitions instead of weak declarations
This removes the need for inline safety wrappers, marginally reducing
the size penalty of weak functions, and works around an apparent
binutils bug that causes undefined weak symbols to not actually be
NULL when compiling with -fPIE (as EFI builds do).
A bug in versions of binutils prior to 2.16 (released in 2005) will
cause same-file weak definitions to not work with those
toolchains. Update the README to reflect our new dependency on
binutils >= 2.16.
Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/80211')
-rw-r--r-- | src/net/80211/net80211.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/80211/net80211.c b/src/net/80211/net80211.c index 0069abaa..8df2c315 100644 --- a/src/net/80211/net80211.c +++ b/src/net/80211/net80211.c @@ -140,6 +140,17 @@ struct net80211_assoc_ctx { }; /** + * Detect secure 802.11 network when security support is not available + * + * @return -ENOTSUP, always. + */ +__weak int sec80211_detect ( struct io_buffer *iob __unused, + enum net80211_security_proto *secprot __unused, + enum net80211_crypto_alg *crypt __unused ) { + return -ENOTSUP; +} + +/** * @defgroup net80211_netdev Network device interface functions * @{ */ |