aboutsummaryrefslogtreecommitdiffstats
path: root/ws80211_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix includes to get things compiling.Michael Tüxen2013-07-221-1/+1
| | | | svn path=/trunk/; revision=50785
* Fix warning: ISO C90 forbids specifying subobject to initialize.Chris Maynard2013-07-161-6/+7
| | | | svn path=/trunk/; revision=50653
* For C string functions, the header to include is <string.h>, notGuy Harris2013-07-061-1/+1
| | | | | | <strings.h>. svn path=/trunk/; revision=50403
* Add some casts to try to appease the Ubuntu buildbot, which is angry from ↵Chris Maynard2013-07-011-3/+3
| | | | | | r50303. svn path=/trunk/; revision=50306
* Fix Coverity CID 997052 (Infinite loop) by declaring 'err' volatile.Chris Maynard2013-07-011-1/+1
| | | | | | #BACKPORT(1.10) svn path=/trunk/; revision=50303
* Add a bunch of casts to squelch -Wc++-compat warnings.Guy Harris2013-04-031-14/+55
| | | | | | | | | | Don't assume that enum nl80211_channel_type and enum ws80211_channel_type happen to have matching values, map between them, and always assign the right enum value to the right type. This is safer (yes, they do happen to have matching values, but it's not very clean to assume that), and also eliminates some -Wc++-compat warnings. svn path=/trunk/; revision=48717
* Use explicit casts.Anders Broman2013-03-051-1/+1
| | | | svn path=/trunk/; revision=48108
* From Pontus Fuchs:Anders Broman2013-02-061-1/+1
| | | | | | | | | If a monitor interface exists but is down the Wireless toolbar fails to bring it up. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8251 svn path=/trunk/; revision=47519
* Add a few consts to fix some compiler (GCC) errors.Bill Meier2012-12-291-2/+2
| | | | svn path=/trunk/; revision=46849
* Fix a bunch of warnings.Guy Harris2012-12-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
* Fix a typo.Anders Broman2012-09-101-1/+1
| | | | svn path=/trunk/; revision=44840
* From Pontus Fuchs.Anders Broman2012-09-101-2/+2
| | | | | | | | | 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
* From Pontus Fuchs:Anders Broman2012-09-041-2/+12
| | | | | | | | Fall back to CMD_SET_WIPHY for older kernels. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973 svn path=/trunk/; revision=44768
* From Evan Huus:Anders Broman2012-07-091-3/+3
| | | | | | | | | | | | | 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
* Unless NL80211_BAND_ATTR_HT_CAPA is defined, assume we don't haveGuy Harris2012-07-081-1/+5
| | | | | | | | | | | | 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
* Keep the NL80211_CHAN_ and WS80211_CHAN_ values distinct; only theGuy Harris2012-07-081-6/+26
| | | | | | | | | | | | | | | | 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
* Pontus Fuchs (via bug 6973):Jörg Mayer2012-06-241-0/+14
| | | | | | Add libnl version 1 support for wireless toolbar. svn path=/trunk/; revision=43462
* From Pontus Fuchs:Anders Broman2012-06-241-2/+2
| | | | | | | | strncpy -> strlcpy https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6973 svn path=/trunk/; revision=43457
* Add ws80211_utils.[ch] of bug ↵Anders Broman2012-06-201-0/+660
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