Search Linux Wireless

Re: [PATCH v2] cfg80211: avoid restoring the regulatory during disconnect

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

 



On Mon, May 12, 2014 at 04:00:03PM +0200, Johannes Berg wrote:
> On Fri, 2014-05-09 at 15:58 +0530, Rajkumar Manoharan wrote:
> 
> > +static bool cfg80211_is_all_countryie_ignore(void)
> > +{
> > +	struct cfg80211_registered_device *rdev;
> > +	struct wireless_dev *wdev;
> > +
> > +	list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
> > +		list_for_each_entry(wdev, &rdev->wdev_list, list) {
> > +			wdev_lock(wdev);
> > +			if (!(wdev->wiphy->regulatory_flags &
> > +			      REGULATORY_COUNTRY_IE_IGNORE)) {
> > +				wdev_unlock(wdev);
> 
> The locking here seems completely pointless.
>
locking is handled in same way of cfg80211_is_all_idle. Still
want to remove locks?

> Also, maybe you can do something about the long lines, maybe with a
> temporary variable?
>

-Rajkumar
--
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