Bluetooth: AT: Reset AT and CMD state

Reset AT and COMMAND state to process unsolicited response received
after processing result recieved for AT command sent to AG.

Change-Id: Id2a5827ce5b098336291696157027699479478cf
Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
This commit is contained in:
Sathish Narasimman 2017-01-04 19:02:08 +05:30
commit 4b323cd72e

View file

@ -233,6 +233,10 @@ static int at_state_process_result(struct at_client *at, struct net_buf *buf)
}
}
/* Reset the state to process unsolicited response */
at->cmd_state = CMD_START;
at->state = AT_STATE_START;
return 0;
}