[PATCH 3.18 05/13] cfg80211: fix cfg80211_beacon_dup