Search Linux Wireless

ieee80211_ptr and pre-cfg80211 drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hell everyone,

I'm currenctly writing a little program that have to do some stuff with
a wireless card. Actually I need to understand whether a struct
net_device is associated to a wireless card or not.

Someone suggested me to check for net_device->ieee80211_ptr != NULL.
If so, I can assume the device is a wireless card. But can I also assume
the opposite? I mean, if ieee80211_ptr == NULL can I be sure the device
is not wireless?

Digging into the kernel code it seems to me that pre-cfg80211 drivers
doesn't handle such field.

Do you have any suggestion how I can solve this problem?

Thank you.

Regards,

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux