On Mon, 2010-06-07 at 15:58 +0900, Bruno Randolf wrote:

> +static int nl80211_get_antenna(struct sk_buff *skb, struct genl_info *info)
> +{
> +     struct cfg80211_registered_device *rdev;
> +     struct sk_buff *msg;
> +     void *hdr;
> +     int res;
> +     u8 tx_ant, rx_ant;

You should probably set them both to 0 here,

> +     res = rdev->ops->get_antenna(&rdev->wiphy, &tx_ant, &rx_ant);
> +     if (res)
> +             goto free_msg;

and complain about the driver if they still are after this.

johannes

_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to