Search Linux Wireless

Re: [RFC 3/4] wifi: nl80211: strict checking attributes for NL80211_CMD_SET_BSS

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

 



On Wed, 2025-06-04 at 10:55 +0200, Arend van Spriel wrote:
> 
> +	if (strict && (changed & ~rdev->wiphy.bss_param_support))
> +		return -EINVAL;
> +

>  	return rdev_change_bss(rdev, dev, &params);

You probably also need

	changed &= rdev->wiphy.bss_param_support;
	if (!changed)
		return 0;

(a) to force drivers to actually list the bits they want to see, and
(b) to not call the (partially now-removed) driver calls for "no change"
(or no change it cares about)

johannes





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

  Powered by Linux