On Tue, Jun 11, 2013 at 01:53:18PM +0200, Johannes Berg wrote: > > + /* get the channel if any has been specified, otherwise pass NULL to > > + * the driver. The latter will use the current one > > + */ > > + chandef.chan = NULL; > > + if (info->attrs[NL80211_ATTR_WIPHY_FREQ]) { > > + err = nl80211_parse_chandef(rdev, info, &chandef); > > + if (err) > > + return err; > > + } > > I think not specifying a channel but setting > NL80211_ATTR_OFFCHANNEL_TX_OK must be an error. You are right. Indeed this check is done in mac80211. Other drivers do not use NL80211_ATTR_OFFCHANNEL_TX_OK at all. But for consistency I guess it would be correct to do the check here too. I'll send a new version including this change. Cheers, -- Antonio Quartulli ..each of us alone is worth nothing.. Ernesto "Che" Guevara
Attachment:
signature.asc
Description: Digital signature