mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
Read mac filter config file
This commit is contained in:
parent
3b6668051d
commit
42a1e63d9b
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -85,6 +85,9 @@ typedef struct{
|
||||
char *freq;
|
||||
char *hidden;
|
||||
char *mac;
|
||||
char *mac_filter;
|
||||
char *accepted_mac_file;
|
||||
char *accepted_macs;
|
||||
} ConfigValues;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user