This commit is contained in:
vemax78 2013-09-22 22:28:35 +02:00
parent acdd7fb205
commit 7dcfd657b8
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ void wifi_free_driver(void) {
} }
/* */ /* */
int wifi_create_device(int radioid, char* ifname, char* driver) { int wifi_create_device(int radioid, const char* ifname, const char* driver) {
int i; int i;
int length; int length;
int result = -1; int result = -1;
@ -83,7 +83,7 @@ int wifi_create_device(int radioid, char* ifname, char* driver) {
if (!strcmp(driver, wifi_driver[i].ops->name)) { if (!strcmp(driver, wifi_driver[i].ops->name)) {
wifi_device_handle devicehandle; wifi_device_handle devicehandle;
struct device_init_params params = { struct device_init_params params = {
.ifname = ifname .ifname = (char*)ifname
}; };
/* Device init */ /* Device init */

View File

@ -118,7 +118,7 @@ int wifi_init_driver(void);
void wifi_free_driver(void); void wifi_free_driver(void);
/* */ /* */
int wifi_create_device(int radioid, char* ifname, char* driver); int wifi_create_device(int radioid, const char* ifname, const char* driver);
struct wifi_capability* wifi_get_capability_device(int radioid); struct wifi_capability* wifi_get_capability_device(int radioid);
/* Util functions */ /* Util functions */