mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
staging: vt6656: check ieee80211_bss_conf bssid not NULL
commit d309509f84 upstream.
Sometimes bssid can go null on failed association.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6ab8bb14ed
commit
c4fdcdb168
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user