Search Linux Wireless

Re: [PATCH 1/2 v2] cfg80211: Add a function to get the number of supported channels

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

 



On Thu, 2014-01-09 at 11:17 +0200, Ilan Peer wrote:

> +unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy)
> +{
> +	enum ieee80211_band band;
> +	unsigned int n_channels;

Seems nicer to do the = 0 here rather than in the loop?

> +	for (band = 0, n_channels = 0; band < IEEE80211_NUM_BANDS; band++)

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