Read mac filter config file

This commit is contained in:
Lakindu Akash 2020-10-30 23:08:23 +05:30
parent 3b6668051d
commit 42a1e63d9b
No known key found for this signature in database
GPG Key ID: 87D9889F7A634A38
2 changed files with 9 additions and 0 deletions

View File

@ -116,6 +116,12 @@ static void setConfigValues(const char * key, char *value){
if( !strcmp ( USE_PSK, key ))
configValues.use_psk = value;
if( !strcmp ( MAC_FILTER, key ))
configValues.mac_filter = value;
if( !strcmp ( MAC_FILTER_ACCEP, key ))
configValues.accepted_mac_file = value;
}

View File

@ -85,6 +85,9 @@ typedef struct{
char *freq;
char *hidden;
char *mac;
char *mac_filter;
char *accepted_mac_file;
char *accepted_macs;
} ConfigValues;