wifi: ieee80211: use default for medium synchronization delay
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 18 Jun 2023 18:49:47 +0000 (21:49 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Sep 2023 21:49:17 +0000 (23:49 +0200)
commit5def531ef2b53bd4ffc4d467dea3bc504f451e1b
treef59ff1a6ab694e4bccbf2695170ba98a7db78dcf
parentab03121d999b53d1115abd54b6a669cefcd367b9
wifi: ieee80211: use default for medium synchronization delay

Default values are defined for the information included in the Medium
Synchronization Delay Information subfield. The spec says to
initialize the values to these defaults and only change them when
included.

Return the default value instead of zero so that the defaults are
used when the field is not included in the association response.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214435.a7725bef3795.I2d3528cf4af021c5b37f97fbe64ae9116ce9bef1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h