> -----Original Message----- > From: ath10k <ath10k-bounces@xxxxxxxxxxxxxxxxxxx> On Behalf Of Wen Gong > Sent: Friday, April 12, 2019 4:53 PM > To: ath10k@xxxxxxxxxxxxxxxxxxx > Cc: linux-wireless@xxxxxxxxxxxxxxx > Subject: [EXT] [PATCH v2] ath10k: Remove ATH10K_STATE_RESTARTED in > simulate fw crash > @@ -554,6 +555,9 @@ static ssize_t ath10k_write_simulate_fw_crash(struct > + sscanf(buf, "%s %s", buf_cmd, buf_flag); > + ath10k_info(ar, "buf_cmd:%s, buf_flag:%s\n", buf_cmd, buf_flag); > + > + wait_ready = !strcmp(buf_cmd, "wait-ready"); > mutex_lock(&ar->conf_mutex); > > - if (ar->state != ATH10K_STATE_ON && > - ar->state != ATH10K_STATE_RESTARTED) { > + if ((!wait_ready && > + ar->state != ATH10K_STATE_ON && > + ar->state != ATH10K_STATE_RESTARTED) || > + (wait_ready && > + ar->state != ATH10K_STATE_ON)) { > ret = -ENETDOWN; > goto exit; > } > Hi Michał, Do you have any comments for the patch v2? > 1.9.1 > > > _______________________________________________ > ath10k mailing list > ath10k@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/ath10k