On Tue July 27 2010 19:05:42 you wrote: > I'm still not convinced that this is the best approach. Can you discuss > this a bit? well... i am mainly concerned about what you call "legacy" hardware at the moment, but i am trying to make the API useful for 802.11n devices as well. first, thinking only about legacy devices with 2 antennas, the three most common settings are "fixed antenna 1", "fixed antenna 2" and "antenna diversity". luis suggested to use a simple value and constants for this, but i believe that this covers only 90% of the cases, the others being antenna setups i have described (in the commit message and per email before), which use a different antenna for TX than for RX, or diversity for RX and a single fixed antenna for TX. also, while not hugely popular or common, there *is* "legacy" hardware out there which has more than two antennas (e.g.: "pre-11n RangeMax" and "large phased array switch" which were based on ath5k chipsets) and at least the atheros eeprom supports more antennas. i'm not sure about other hardware, but i think it's good to have the flexibility to support more than two antennas in the API, also since this matches with what we need for 802.11n. that's why a bitmask makes sense. honestly, i don't know too much about 802.11n, so i need the help of people who work with 802.11n to see if this is useful for them and possibly extend it, or update the documentation to make the API more clear. but i believe that if you think 'chainmask' instead of 'antenna' it should be o.k... in the end we are just talking about antennas :) for most of the users the antenna settings will just be default, but sometimes, especially in outdoor installations less antennas are present, or special setups can be desired and this API can be used to inform the HW about available antennas, wether it's 802.11n or not. bruno -- 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