You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dave Hansen
0cd545d6ba
[PATCH] hostap update
...
Create sysfs "device" files for hostap
I was writing some scripts to automatically build kismet source lines,
and I noticed that hostap devices don't have device files, unlike my
prism54 and ipw2200 cards:
$ ls -l /sys/class/net/eth0/device
/sys/class/net/eth0/device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:01.0
$ ls -l /sys/class/net/wifi0
ls: /sys/class/net/wifi0/device: No such file or directory
$ ls -l /sys/class/net/wlan0
ls: /sys/class/net/wlan0/device: No such file or directory
The following (quite small) patch makes sure that both the wlan and wifi
net devices have that pointer to the bus device.
This way, I can do things like
for i in /sys/class/net/*; do
if ! [ -e $i/device/drive ]; then
continue;
fi;
driver=$(basename $(readlink $i/device/driver))
case $driver in
hostap*)
echo -- hostap,$i,$i-$driver
break;
ipw2?00)
echo -- $driver,$i,$i-$driver
break;
prism54)
echo prism54g,$i
esac
done
Which should generate a working set of source lines for kismet no matter
what order I plug the cards in.
It might also be handy to have a link between the two net devices, but
that's a patch for another day.
That patch is against 2.6.13-rc1-mm1.
-- Dave
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
20 years ago
..
acorn
[PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers
20 years ago
acpi
[PATCH] acpi: Don't call acpi_sleep_prepare from acpi_power_off
20 years ago
atm
[ATM]: zatm: mailbox converted to pci_alloc_consistent()
20 years ago
base
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
20 years ago
block
[PATCH] cciss per disk queue
20 years ago
bluetooth
[NET]: Transform skb_queue_len() binary tests into skb_queue_empty()
20 years ago
cdrom
[PATCH] Update CREDITS entry and listings in source files for Jesper Juhl
20 years ago
char
[PATCH] agp: restore APBASE after setting APSIZE
20 years ago
cpufreq
Here are two possible cleanups in cpufreq.c:
20 years ago
crypto
[CRYPTO] Update IV correctly for Padlock CBC encryption
20 years ago
dio
[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.c: update device attribute callbacks
20 years ago
eisa
[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.c: update device attribute callbacks
20 years ago
fc4
[SCSI] ifdef out broken fc4 EH code
20 years ago
firmware
[PATCH] PCDP: if PCDP contains parity information, use it
20 years ago
hwmon
[PATCH] I2C: use time_after in 3 chip drivers
20 years ago
i2c
[PATCH] I2C: 24RF08 corruption prevention (again)
20 years ago
ide
[PATCH] pcmcia: fix many device IDs
20 years ago
ieee1394
[PATCH] turn many #if $undefined_string into #ifdef $undefined_string
20 years ago
infiniband
[IB/ucm]: Clean up userspace CM
20 years ago
input
Merge master.kernel.org:/pub/scm/linux/kernel/git/dtor/input
20 years ago
isdn
[PATCH] clean up inline static vs static inline
20 years ago
macintosh
[PATCH] ppc64: hide CONFIG_ADB
20 years ago
mca
[PATCH] unexport mca_find_device_by_slot
20 years ago
md
[PATCH] device-mapper: fix md->lock deadlocks in core
20 years ago
media
[PATCH] clean up inline static vs static inline
20 years ago
message
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6
20 years ago
misc
[PATCH] IBM_ASM Kconfig corrections
20 years ago
mmc
[PATCH] clean up inline static vs static inline
20 years ago
mtd
[PATCH] turn many #if $undefined_string into #ifdef $undefined_string
20 years ago
net
[PATCH] hostap update
20 years ago
nubus
Linux-2.6.12-rc2
20 years ago
oprofile
[PATCH] clean up inline static vs static inline
20 years ago
parisc
[PATCH] acpi bridge hotadd: ACPI based root bridge hot-add
20 years ago
parport
[PATCH] pcmcia: remove references to pcmcia/version.h
20 years ago
pci
[PATCH] PCI: remove PCI_BRIDGE_CTL_VGA handling from setup-bus.c
20 years ago
pcmcia
[PATCH] pcmcia: disable read prefetch/write burst on old O2Micro bridges
20 years ago
pnp
[PATCH] drivers/pnp/pnpbios/rsparser.c: fix compile error with PCI=n
20 years ago
s390
[PATCH] s390: device recognition
20 years ago
sbus
[SPARC]: Fix __KERNEL_SYSCALLS__ defining in envctrl.c and bbc_envctrl.c
20 years ago
scsi
Merge head 'upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
20 years ago
serial
[PATCH] serial: add MMIO support to 8250_pnp
20 years ago
sh
[PATCH] Driver Core: drivers/s390/net/qeth_sys.c - drivers/usb/gadget/pxa2xx_udc.c: update device attribute callbacks
20 years ago
sn
[PATCH] ioc4: PCI bus speed detection
20 years ago
tc
Linux-2.6.12-rc2
20 years ago
telephony
[PATCH] pcmcia: remove references to pcmcia/version.h
20 years ago
usb
/spare/repo/netdev-2.6 branch 'master'
20 years ago
video
[PATCH] fbdev: Replace memcpy with for-loop when preparing bitmap
20 years ago
w1
[PATCH] w1: kconfig/Makefile fix.
20 years ago
zorro
[PATCH] Driver Core: drivers/usb/input/aiptek.c - drivers/zorro/zorro-sysfs.c: update device attribute callbacks
20 years ago
Kconfig
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6
20 years ago
Makefile
[PATCH] I2C: Move hwmon drivers (1/3)
20 years ago