exit(1) removed from mgmt_err_table write
correcting the it_len datatype
 writing mac addresses of the devices connected to AP