diff options
author | Pat Erley <pat-lkml@erley.org> | 2008-12-13 01:04:05 +0100 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-12-13 01:04:05 +0100 |
commit | dfd13ee525038e59e029a35087f9f6330a31a7ce (patch) | |
tree | e79534bc504b84f66741168abdbd8521779f9380 /iw.h | |
parent | 9b2e7e6e695370ae3d01c3f341f4ab9d8d13efcf (diff) | |
download | platform_external_iw-dfd13ee525038e59e029a35087f9f6330a31a7ce.tar.gz platform_external_iw-dfd13ee525038e59e029a35087f9f6330a31a7ce.tar.bz2 platform_external_iw-dfd13ee525038e59e029a35087f9f6330a31a7ce.zip |
allow linking against libnl 2.0
This converts iw to use libnl-2, and adds compatibility with libnl-1.
There is not currently a good way to detect the libnl version during
compilation, as the versioning in the netlink/version.h is defined as a
string "2.0" rather than a major and a minor number, so we must detect
it in the Makefile.
Signed-off-by: Pat Erley <pat-lkml@erley.org>
Diffstat (limited to 'iw.h')
-rw-r--r-- | iw.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,7 +10,11 @@ #define ETH_ALEN 6 struct nl80211_state { +#ifdef CONFIG_LIBNL20 + struct nl_sock *nl_handle; +#else struct nl_handle *nl_handle; +#endif struct nl_cache *nl_cache; struct genl_family *nl80211; }; |