Fix build issue with af.h as header has been removed and declaration is moved to attribute-table.h
Notes:
Removing unreg of wifi event because when driver retries, it does not enter from wifi_connect again, so wifi event will not be re-registered if un-registered in wifi_disconn_hdl. This will cause the next connection to timeout as Semaphore is unable to release
Notes: