diff options
author | Star Chang <starchang@google.com> | 2022-09-27 03:50:03 +0000 |
---|---|---|
committer | Star Chang <starchang@google.com> | 2022-11-01 11:46:03 +0000 |
commit | a8878c34c747769c7a069910d26d94de4efac03c (patch) | |
tree | 523bd79413ca76a535a1110bc6fa668af6ec33f0 /scenes_fsm.c | |
parent | 4e6c07be722421daa260cb66ffd667f4088d1e83 (diff) | |
download | wlan_ptracker-a8878c34c747769c7a069910d26d94de4efac03c.tar.gz |
wlan_ptracker: add dumpstate support
1. add support dumpstate
2. fix kernel exception issue
Bug: 253348062
Test: ST-stability/WiFi regression/WiFi performance Test pass
Signed-off-by: Star Chang <starchang@google.com>
Change-Id: I55610531fbe21f870d28605b077b3adce742ed47
Diffstat (limited to 'scenes_fsm.c')
-rw-r--r-- | scenes_fsm.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/scenes_fsm.c b/scenes_fsm.c index 768c75d..6bb920c 100644 --- a/scenes_fsm.c +++ b/scenes_fsm.c @@ -58,15 +58,12 @@ static int fsm_thread(void *param) break; } wait_for_completion(&fsm->event); + ptracker_dbg(core, "state: %d, trans state %d -> %d, rate %llu\n", msg->state, msg->src, msg->dst, msg->rate); - wlan_ptracker_call_chain(&core->notifier, - WLAN_PTRACKER_NOTIFY_SCENE_CHANGE_PREPARE, core); - fsm->confirm = true; - wlan_ptracker_call_chain(&core->notifier, - WLAN_PTRACKER_NOTIFY_SCENE_CHANGE, core); + wlan_ptracker_call_chain(&core->notifier, WLAN_PTRACKER_NOTIFY_SCENE_CHANGE_PREPARE, core); + wlan_ptracker_call_chain(&core->notifier, WLAN_PTRACKER_NOTIFY_SCENE_CHANGE, core); msg->state = msg->dst; - fsm->confirm = false; } return 0; } @@ -171,7 +168,6 @@ static int scene_notifier_handler(struct notifier_block *nb, { struct wlan_ptracker_core *core = ptr; struct wlan_ptracker_notifier *notifier = &core->notifier; - struct wlan_ptracker_fsm *fsm = &core->fsm; /* * Events of suspen and sta change will block wlan driver @@ -186,7 +182,6 @@ static int scene_notifier_handler(struct notifier_block *nb, notifier->prev_event = jiffies; case WLAN_PTRACKER_NOTIFY_STA_CONNECT: case WLAN_PTRACKER_NOTIFY_TP: - fsm->confirm = true; scenes_fsm_decision(core, event); break; default: @@ -310,8 +305,6 @@ int scenes_fsm_init(struct wlan_ptracker_fsm *fsm) /* assign scenes and conditions */ fsm->conditions = &conditions[0]; fsm->reset_cnt = 0; - /* for first link up setting */ - fsm->confirm = true; /* init msg for receiving event */ msg->dst = WLAN_SCENE_IDLE; msg->src = WLAN_SCENE_IDLE; |