On Tue, 2010-05-11 at 17:39 +0900, Bruno Randolf wrote: > + if (tx_ant == 1 && rx_ant == 1) > + ath5k_hw_set_antenna_mode(sc->ah, AR5K_ANTMODE_FIXED_A); > + else if (tx_ant == 2 && rx_ant == 2) > + ath5k_hw_set_antenna_mode(sc->ah, AR5K_ANTMODE_FIXED_B); > + else if (tx_ant == 3 && rx_ant == 3) > + ath5k_hw_set_antenna_mode(sc->ah, AR5K_ANTMODE_DEFAULT); > + else > + return -EOPNOTSUPP; That should be -EINVAL, I think. johannes -- 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