Skip to contentSkip to conversation

setting of antennas

iw, ath5k Dennis Borgmann 3 participants 3 messages Apr 15, 2011 – Apr 16, 2011

lore
Share & tools
lore
#0 lore raw

Hello!

Thanks to Bruno Randolf, John Linville, Johannes Berg and other, it is possible to set transmission or reception antennas with ath5k. But:

Is it only possible to set the bitmap of used antennas via iw(8) like this:

phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>

Or is there a way to this with an IOCTL or similar in an own program?

I do also know of the (deprecated) way to this via debugfs, but I'd really like to do it on my own in a C-program as part of other things to be done. I wouldn't like this operation to be performed with a system(3)-call of iw(8).

Any hints? I could not find documentation about this topic...

Best regards,
Dennis

#1 lore raw
Quoted 9 lines · Dennis Borgmann

Is it only possible to set the bitmap of used antennas via iw(8) like this:

phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>

Or is there a way to this with an IOCTL or similar in an own program?

I do also know of the (deprecated) way to this via debugfs, but I'd really like to do it on my own in a C-program as part of other things to be done.

iw is a C program too ...........

johannes