Wireshark-dev: Re: [Wireshark-dev] MSVC 2008 - ENOTSUP not declared
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Thu, 21 Jun 2012 14:09:00 -0400
Pontus Fuchs wrote:


On 2012-06-21 17:16, Jeff Morriss wrote:
Hmm, I should have investigated a little further before sending the email.

ws80211_toolbar_new() is testing for a ENOTSUP return from ws80211_init() which never returns ENOTSUP. Does one of the error returns from that function mean "Wireless support not enabled"? Maybe the test (which results in that message instead of just "Failed to initialize ws80211") should go away?


Actually looking as the source I now see that my suggestion was incorrect.

ENOTSUP is what the linux kernel returns if the kernel lacks wireless support. I assumed it was ws80211_utils.c that returned ENOTSUP in the #else-code that was compiled when libnl is missing.

I'll try to fix this asap.

Yeah, I just noticed that the original version (in the patch attached to bug 6973) could return ENOTSUP; I removed the (now no longer used) code in r43430.