};
#define CRC_INNER_LOOP(n, c, x) \
- (c) = ((c) >> 8) ^ crc##n##_table[((c) ^ (x)) & 0xff]
+ ((c) = ((c) >> 8) ^ crc##n##_table[((c) ^ (x)) & 0xff])
u8 hndcrc8(u8 *pdata, /* pointer to array of data to process */
uint nbytes, /* number of input data bytes to process */
char iface_name[IFNAMSIZ];
module_param_string(iface_name, iface_name, IFNAMSIZ, 0);
-#define DAEMONIZE(a) daemonize(a); \
- allow_signal(SIGKILL); \
- allow_signal(SIGTERM);
+#define DAEMONIZE(a) \
+ do { \
+ daemonize(a); \
+ allow_signal(SIGKILL); \
+ allow_signal(SIGTERM); \
+ } while (0);
#define BLOCKABLE() (!in_atomic())
static wlc_ssid_t g_ssid;
-#define DAEMONIZE(a) daemonize(a); \
- allow_signal(SIGKILL); \
- allow_signal(SIGTERM);
+#define DAEMONIZE(a) \
+ do { \
+ daemonize(a); \
+ allow_signal(SIGKILL); \
+ allow_signal(SIGTERM); \
+ } while (0);
#if defined(WL_IW_USE_ISCAN)
#define ISCAN_STATE_IDLE 0
#define WL_FW_RELOAD (SIOCIWFIRSTPRIV+27)
#define WL_COMBO_SCAN (SIOCIWFIRSTPRIV+29)
#define WL_AP_SPARE3 (SIOCIWFIRSTPRIV+31)
-#define G_SCAN_RESULTS 8*1024
+#define G_SCAN_RESULTS (8*1024)
#define WE_ADD_EVENT_FIX 0x80
#define G_WLAN_SET_ON 0
#define G_WLAN_SET_OFF 1