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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:05:30 +0000 (12:05 +0200)
commit39bcc5b8e16e75cfccc36fca3d425c64eef3df04
tree8df739c7a23e6463e0d1e436c33313389766b1f5
parenteeec7574ec3c03c69adc99492df74dc1cc0ebd63
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>
include/linux/ieee80211.h