Search Linux Wireless

Re: [RFCv2 05/13] cfg80211: introduce cfg80211_get_chan_state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-06-20 at 11:11 +0200, Michal Kazior wrote:

> >> +void
> >> +cfg80211_get_chan_state(struct cfg80211_registered_device *rdev,
> >> +		        struct wireless_dev *wdev,
> >> +		        struct ieee80211_channel **chan,
> >> +		        enum cfg80211_chan_mode *chanmode)
> >
> > Why not return the mode rather than void&  pointer?
> 
> I think returning the mode would be ambiguous - the function name isn't 
> "get_chan_mode". chan_mode isn't a result on its own. But then again, 
> it's just a matter of preference.

No, ok, you're right -- I missed that it was returning both the channel
& the mode.

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux