mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
staging: wilc1000: set default value of cfg response type in wilc_wlan_cfg_indicate_rx()
Handle the setting of default value for 'wilc_cfg_rsp' type for all cases in wilc_wlan_cfg_indicate_rx() as the caller make use of this value to know the type of the received message. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1a46d545e9
commit
b7c355dad9
1 changed files with 1 additions and 2 deletions
|
|
@ -507,6 +507,7 @@ void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,
|
|||
msg_id = frame[1]; /* seq no */
|
||||
frame += 4;
|
||||
size -= 4;
|
||||
rsp->type = 0;
|
||||
|
||||
/*
|
||||
* The valid types of response messages are
|
||||
|
|
@ -532,7 +533,6 @@ void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,
|
|||
|
||||
case 'N':
|
||||
wilc_network_info_received(wilc, frame - 4, size + 4);
|
||||
rsp->type = 0;
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
|
|
@ -540,7 +540,6 @@ void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,
|
|||
break;
|
||||
|
||||
default:
|
||||
rsp->type = 0;
|
||||
rsp->seq_no = msg_id;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue