Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] rev 43413: /trunk/ui/gtk/ /trunk/ui/gtk/: main_80211_toolbar

From: Pontus Fuchs <pontus.fuchs@xxxxxxxxx>
Date: Thu, 21 Jun 2012 08:35:28 +0200
On 2012-06-21 08:04, Joerg Mayer wrote:
On Wed, Jun 20, 2012 at 11:13:13PM +0200, Pontus Fuchs wrote:
Crap. That patch was not correct. Corrected one attached.
...
Thanks for your merge work! The attached patch is the missing piece to
get it working.
...
diff --git a/Makefile.common b/Makefile.common
index ac50220..e52cfc3 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -116,6 +116,7 @@ wireshark_SOURCES =	\
  	recent.c	\
  	summary.c	\
  	tempfile.c	\
+	ws80211_utils.c	\
  	u3.c
...

Why do we need to link Wireshark with this file? Access to libnl is restricted
to dumpcap and this file is providing the libnl interface or am I wrong?

Only the channel setting is done through dumpcap as this required CAP_NET_ADMIN. ws80211_utils.c also contains code for querying interfaces for supported frequencies etc. This code does not require any special permissions and is called from the toolbar GUI.

Cheers,

Pontus