Fix type
This commit is contained in:
parent
acdd7fb205
commit
7dcfd657b8
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user