Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8da34932 authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211: reconfig bss_info_changed only if beaconing



For AP/IBSS/mesh interfaces, call the driver to reconfigure
bss_info_changed only if the interface was beaconing before
suspend, otherwise we call the driver and it might interpret
the change as going from enabled to disabled.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d6a83228
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -1555,9 +1555,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)


			/* fall through */
			/* fall through */
		case NL80211_IFTYPE_MESH_POINT:
		case NL80211_IFTYPE_MESH_POINT:
			if (sdata->vif.bss_conf.enable_beacon) {
				changed |= BSS_CHANGED_BEACON |
				changed |= BSS_CHANGED_BEACON |
					   BSS_CHANGED_BEACON_ENABLED;
					   BSS_CHANGED_BEACON_ENABLED;
				ieee80211_bss_info_change_notify(sdata, changed);
				ieee80211_bss_info_change_notify(sdata, changed);
			}
			break;
			break;
		case NL80211_IFTYPE_WDS:
		case NL80211_IFTYPE_WDS:
			break;
			break;