2014-03-28 08:27:55

by Dan Carpenter

[permalink] [raw]
Subject: [patch] rsi: rsi_91x: misleading debug printk

There is a missing set of curly braces here so the debug output says
"Probe confirm received" unintentionally.

Signed-off-by: Dan Carpenter <[email protected]>

diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
index ef37d4b..2361a68 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
@@ -1292,10 +1292,11 @@ int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg)
return -EINVAL;
}
} else if (msg_type == TX_STATUS_IND) {
- if (msg[15] == PROBEREQ_CONFIRM)
+ if (msg[15] == PROBEREQ_CONFIRM) {
common->mgmt_q_block = false;
rsi_dbg(FSM_ZONE, "%s: Probe confirm received\n",
__func__);
+ }
} else {
return rsi_mgmt_pkt_to_core(common, msg, msg_len, msg_type);
}


2014-03-28 13:15:17

by John W. Linville

[permalink] [raw]
Subject: Re: [patch] rsi: rsi_91x: misleading debug printk

;-)

goto fail;
goto fail;

Thanks, Dan!

On Fri, Mar 28, 2014 at 11:27:33AM +0300, Dan Carpenter wrote:
> There is a missing set of curly braces here so the debug output says
> "Probe confirm received" unintentionally.
>
> Signed-off-by: Dan Carpenter <[email protected]>
>
> diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
> index ef37d4b..2361a68 100644
> --- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c
> +++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
> @@ -1292,10 +1292,11 @@ int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg)
> return -EINVAL;
> }
> } else if (msg_type == TX_STATUS_IND) {
> - if (msg[15] == PROBEREQ_CONFIRM)
> + if (msg[15] == PROBEREQ_CONFIRM) {
> common->mgmt_q_block = false;
> rsi_dbg(FSM_ZONE, "%s: Probe confirm received\n",
> __func__);
> + }
> } else {
> return rsi_mgmt_pkt_to_core(common, msg, msg_len, msg_type);
> }
>

--
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.