mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Try to fix auth handler
This commit is contained in:
parent
6e7ca76b1f
commit
ee47d9afa7
2 changed files with 7 additions and 5 deletions
|
@ -90,8 +90,8 @@ int main(int argc, char **argv) {
|
|||
//pthread_t tid_get_client;
|
||||
//pthread_create(&tid_get_client, NULL, &update_clients_thread, NULL);
|
||||
|
||||
pthread_t tid_kick_clients;
|
||||
pthread_create(&tid_kick_clients, NULL, &kick_clients_thread, NULL);
|
||||
//pthread_t tid_kick_clients;
|
||||
//pthread_create(&tid_kick_clients, NULL, &kick_clients_thread, NULL);
|
||||
|
||||
//pthread_create(&tid, NULL, &remove_thread, NULL);
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ int parse_to_probe_req(struct blob_attr *msg, probe_entry *prob_req) {
|
|||
static int handle_auth_req(struct blob_attr *msg) {
|
||||
|
||||
printf("HANDLE AUTH!\n");
|
||||
|
||||
return UBUS_STATUS_CONNECTION_FAILED;
|
||||
auth_entry auth_req;
|
||||
parse_to_auth_req(msg, &auth_req);
|
||||
|
||||
|
@ -270,9 +270,11 @@ static int handle_probe_req(struct blob_attr *msg) {
|
|||
static int hostapd_notify(struct ubus_context *ctx, struct ubus_object *obj,
|
||||
struct ubus_request_data *req, const char *method,
|
||||
struct blob_attr *msg) {
|
||||
//return UBUS_STATUS_UNKNOWN_ERROR;
|
||||
|
||||
printf("METHOD: %s\n",method);
|
||||
sleep(1);
|
||||
printf("Rjection by Ubus handler: %d\n", UBUS_STATUS_CONNECTION_FAILED);
|
||||
return UBUS_STATUS_CONNECTION_FAILED;
|
||||
|
||||
|
||||
// TODO: Only handle probe request and NOT assoc, ...
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue