mac80211_hwsim: fix beacon delta calculation
authorBenjamin Beichler <benjamin.beichler@uni-rostock.de>
Fri, 11 Nov 2016 16:37:56 +0000 (17:37 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 15 Nov 2016 13:39:56 +0000 (14:39 +0100)
commit4fb7f8af1f4c14a2a6cee7c9ff0cf999d918c72d
tree440ea6c901cb1367be2592041196b08f9efe097b
parenta786f96da0d657bf8bd56d8eebb3f31cc45605bb
mac80211_hwsim: fix beacon delta calculation

Due to the cast from uint32_t to int64_t, a wrong next beacon timing is
calculated and effectively the beacon timer stops working. This is
especially bad for 802.11s mesh networks, because discovery breaks
without beacons.

Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c