Commit 3eec1dc3 authored by Arun Muthusamy's avatar Arun Muthusamy

wfa_collect: lock the mutex object to protect wifi-DE data structure

parent fcc9e3ef
......@@ -776,8 +776,11 @@ void populate_wifi_data_element_model()
}
}
pthread_mutex_lock(&wfa_delm_lock);
syslog(LOG_INFO, "Locking in place in order to copy wifi data elements values\n");
memset(wifi_radio, 0, MAX_CLIENT * sizeof(struct wifi_radio_element));
memcpy(&wifi_radio, &wifi_radio_new, sizeof(wifi_radio_new));
pthread_mutex_unlock(&wfa_delm_lock);
/* TODO : Hardcoded to one network device. */
/* Populate wifi network device struct. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment