[added to the 4.1 stable tree] cfg80211: fix cfg80211_beacon_dup