[PATCH 4.14 08/54] cfg80211: fix cfg80211_beacon_dup