Skip to content

Commit

Permalink
staging: vt6656: check ieee80211_bss_conf bssid not NULL
Browse files Browse the repository at this point in the history
Sometimes bssid can go null on failed association.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.17+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed Jul 15, 2015
1 parent 8e8e919 commit d309509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit d309509

Please sign in to comment.