Commit Graph

9 Commits

Author SHA1 Message Date
Anders Broman 4f6442c846 Fix a typo.
svn path=/trunk/; revision=44840
2012-09-10 13:40:06 +00:00
Anders Broman 84c57e6eb6 From Pontus Fuchs.
new check for the configure script to disable the tool bar if
the nl80211.h is not good enough.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973

svn path=/trunk/; revision=44839
2012-09-10 13:15:02 +00:00
Anders Broman 342c344c1f From Pontus Fuchs:
Fall back to CMD_SET_WIPHY for older kernels. 

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973

svn path=/trunk/; revision=44768
2012-09-04 08:57:03 +00:00
Anders Broman 45e9efc6a9 From Evan Huus:
Fix leaks

- don't g_strdup a string just to use it in a g_strdup_printf
- clean up properly in error cases in lua bindings
- misc. other missing g_free() calls
- one missing fclose() in the new 80211_utils

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7454

svn path=/trunk/; revision=43617
2012-07-09 01:56:27 +00:00
Guy Harris 5f90f658fe Unless NL80211_BAND_ATTR_HT_CAPA is defined, assume we don't have
channel-type-setting capabilities, and don't build the code to set the
channel type or fetch any channel types other than "no HT".

(It *looks* as if nl80211.h defines NL80211_BAND_ATTR_HT_CAPA as a
member of an enum *and* as a #define, at least in the kernels I've
looked at, so we can test for it with #ifdef - perhaps that's *why* it's
#defined.)

svn path=/trunk/; revision=43608
2012-07-08 02:07:38 +00:00
Guy Harris 4d84671f9b Keep the NL80211_CHAN_ and WS80211_CHAN_ values distinct; only the
Linux version of the platform-dependent 802.11 stuff should use the
NL80211_CHAN_ stuff.  Map from the WS80211_CHAN_ values to the
corresponding NL80211_CHAN_ values in ws80211_set_freq(), and have the
channel_types bitset use bits indexed by WS80211_CHAN_ values rather
than NL80211_CHAN_.

This won't fix the problem of building this on Linuxes with old
nl80211.h headers that lack NL80211_CHAN_, but it narrows the set of
code that needs the NL80211_CHAN_ values, perhaps allowing the fix to be
a bit cleaner, as well as making it easier to make this work on
platforms other than Linux.

svn path=/trunk/; revision=43606
2012-07-08 01:43:14 +00:00
Jörg Mayer 2a2ddb7bcb Pontus Fuchs (via bug 6973):
Add libnl version 1 support for wireless toolbar.

svn path=/trunk/; revision=43462
2012-06-24 19:36:20 +00:00
Anders Broman 464464d8b6 From Pontus Fuchs:
strncpy -> strlcpy 

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973

svn path=/trunk/; revision=43457
2012-06-24 15:19:24 +00:00
Anders Broman 9ee113d384 Add ws80211_utils.[ch] of bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973
sligtly modified to compile on Windows. See if it breaks any other platform.

svn path=/trunk/; revision=43410
2012-06-20 16:05:34 +00:00