2010-07-09 02:36:22 +08:00
|
|
|
--- a/src/drivers/drivers.mak
|
|
|
|
+++ b/src/drivers/drivers.mak
|
2014-06-05 23:58:01 +08:00
|
|
|
@@ -30,7 +30,6 @@ NEED_SME=y
|
2010-07-09 02:36:22 +08:00
|
|
|
NEED_AP_MLME=y
|
|
|
|
NEED_NETLINK=y
|
|
|
|
NEED_LINUX_IOCTL=y
|
|
|
|
-NEED_RFKILL=y
|
2012-03-27 18:42:47 +08:00
|
|
|
|
|
|
|
ifdef CONFIG_LIBNL32
|
|
|
|
DRV_LIBS += -lnl-3
|
2014-10-26 00:48:45 +08:00
|
|
|
@@ -115,7 +114,6 @@ DRV_WPA_CFLAGS += -DCONFIG_DRIVER_WEXT
|
2010-07-09 02:36:22 +08:00
|
|
|
CONFIG_WIRELESS_EXTENSION=y
|
|
|
|
NEED_NETLINK=y
|
|
|
|
NEED_LINUX_IOCTL=y
|
|
|
|
-NEED_RFKILL=y
|
|
|
|
endif
|
|
|
|
|
2012-03-27 18:42:47 +08:00
|
|
|
ifdef CONFIG_DRIVER_NDIS
|
2014-10-26 00:48:45 +08:00
|
|
|
@@ -141,7 +139,6 @@ endif
|
2010-11-12 06:39:19 +08:00
|
|
|
ifdef CONFIG_WIRELESS_EXTENSION
|
2012-03-27 18:42:47 +08:00
|
|
|
DRV_WPA_CFLAGS += -DCONFIG_WIRELESS_EXTENSION
|
|
|
|
DRV_WPA_OBJS += ../src/drivers/driver_wext.o
|
2010-11-12 06:39:19 +08:00
|
|
|
-NEED_RFKILL=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_NETLINK
|
2014-10-26 00:48:45 +08:00
|
|
|
@@ -154,6 +151,7 @@ endif
|
2010-07-09 02:36:22 +08:00
|
|
|
|
|
|
|
ifdef NEED_RFKILL
|
|
|
|
DRV_OBJS += ../src/drivers/rfkill.o
|
|
|
|
+DRV_WPA_CFLAGS += -DCONFIG_RFKILL
|
|
|
|
endif
|
|
|
|
|
2012-09-13 20:38:51 +08:00
|
|
|
ifdef CONFIG_VLAN_NETLINK
|
2014-04-06 20:13:55 +08:00
|
|
|
--- a/src/drivers/rfkill.h
|
|
|
|
+++ b/src/drivers/rfkill.h
|
|
|
|
@@ -18,8 +18,24 @@ struct rfkill_config {
|
|
|
|
void (*unblocked_cb)(void *ctx);
|
|
|
|
};
|
|
|
|
|
|
|
|
+#ifdef CONFIG_RFKILL
|
|
|
|
struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
|
|
|
|
void rfkill_deinit(struct rfkill_data *rfkill);
|
|
|
|
int rfkill_is_blocked(struct rfkill_data *rfkill);
|
|
|
|
+#else
|
|
|
|
+static inline struct rfkill_data * rfkill_init(struct rfkill_config *cfg)
|
|
|
|
+{
|
|
|
|
+ return (void *) 1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline void rfkill_deinit(struct rfkill_data *rfkill)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline int rfkill_is_blocked(struct rfkill_data *rfkill)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#endif /* RFKILL_H */
|