pc/wifi: do not execute driver on user stack

The 'with_libc' call at this point is not necessary and could be
harmful as it forces the usage of the user stack for the driver.
All code depending on this distinction should only be executed
from within the pthread.

Issue #4537.
This commit is contained in:
Josef Söntgen 2022-06-24 14:38:30 +02:00 committed by Christian Helmuth
parent a90abbc22e
commit 1ca2265fd4

View File

@ -110,8 +110,6 @@ struct Main
} }
}; };
static Main *_main;
/** /**
* Return shared-memory message buffer * Return shared-memory message buffer
@ -126,8 +124,5 @@ void *wifi_get_buffer(void)
void Libc::Component::construct(Libc::Env &env) void Libc::Component::construct(Libc::Env &env)
{ {
Libc::with_libc([&] () { static Main server(env);
static Main server(env);
_main = &server;
});
} }