From: Malcolm Priestley Date: Thu, 9 Jul 2015 16:03:57 +0000 (+0100) Subject: staging: vt6656: check ieee80211_bss_conf bssid not NULL X-Git-Tag: MMI-PSA29.97-13-9~9713^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d309509f84725f99326cc73d3b00aae096b374ae;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: vt6656: check ieee80211_bss_conf bssid not NULL Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley Cc: # v3.17+ Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index f97323f19acf..af572d718135 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -701,7 +701,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) vnt_mac_set_bssid_addr(priv, (u8 *)conf->bssid);