mwifiex: fix a reversed condition
The NULL test here is reversed.
Fixes: 7d7f07d8c5
('mwifiex: add wowlan net-detect support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
44ca509cb9
commit
efdf0e393e
|
@ -2196,7 +2196,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
|
|||
|
||||
pmatch = adapter->nd_info->matches[idx];
|
||||
|
||||
if (!pmatch) {
|
||||
if (pmatch) {
|
||||
memset(pmatch, 0, sizeof(*pmatch));
|
||||
if (chan_band_tlv) {
|
||||
pmatch->n_channels = 1;
|
||||
|
|
Loading…
Reference in New Issue