]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdeb86c96f47382941329f2af2fb2dcddf5c66dce
tree440ea6c901cb1367be2592041196b08f9efe097b
parent8b358e3378910b88fc822edbe64b8966074f4e0c
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