On Tue, 2010-05-11 at 17:39 +0900, Bruno Randolf wrote: > +static inline int drv_set_antenna(struct ieee80211_local *local, > + u8 tx_ant, u8 rx_ant) > +{ > + int ret = -EOPNOTSUPP; > + might_sleep(); > + if (local->ops->set_antenna) > + ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); > + return ret; > +} > + > +static inline int drv_get_antenna(struct ieee80211_local *local, > + u8 *tx_ant, u8 *rx_ant) > +{ > + int ret = -EOPNOTSUPP; > + might_sleep(); > + if (local->ops->get_antenna) > + ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); > + return ret; > +} Oh .. and add tracing please. 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