Created attachment 16654 [details] [review]
patch to use ioctl
The canonical way to check whether a network interface has wireless extensions is to try calling the SIOCGIWNAME ioctl on it. The attached patches does that for hal.
Since the patch depends on the one in bug 15986, I'm marking this one as depending it.
Created attachment 16676 [details] [review]
patch to use wext ioctl instead of sysfs
The other patch had inverted arguments in strncpy(), this fixes it.
Created attachment 16696 [details] [review]
updated to hal 0.5.11
You probably want this version against hal 0.5.11; your has phy8011 bits in it which are actually wiphy in the latest hal git. I'm assumig the phy80211 code is older?
Au contraire! This depends on the patch I posted in bug 15986 which changes hal (from git) to use phy80211 which is the correct path.
Patch works for me.
Author: Johannes Berg <email@example.com>
Date: Fri May 23 17:31:51 2008 +0200
use wext ioctl instead of sysfs to detect wireless
The canonical way to check whether a network interface has wireless
extensions is to try calling the SIOCGIWNAME ioctl on it.