From: Malcolm Priestley Date: Thu, 9 Jul 2015 16:01:24 +0000 (+0100) Subject: staging: vt6655: check ieee80211_bss_conf bssid not NULL X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8e8e9198920ddfa920191069ae02eba75d39e653;p=openwrt%2Fstaging%2Fblogic.git staging: vt6655: check ieee80211_bss_conf bssid not NULL Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley Cc: # v3.19+ Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index ed040fbb7df8..b0c8e235b982 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1418,7 +1418,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, priv->current_aid = conf->aid; - if (changed & BSS_CHANGED_BSSID) { + if (changed & BSS_CHANGED_BSSID && conf->bssid) { unsigned long flags; spin_lock_irqsave(&priv->lock, flags);