static ssize_t rx_streaming_always_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(userbuf, count, ppos, "%d\n", wl->conf.rx_streaming.always); }
static ssize_t radar_debug_mode_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(userbuf, count, ppos, "%d\n", wl->radar_debug_mode); }
static ssize_t split_scan_timeout_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", wl->conf.scan.split_scan_timeout / 1000); }
static ssize_t sleep_auth_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", wl->sleep_auth); }
static ssize_t forced_ps_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", wl->conf.conn.forced_ps); }
static ssize_t vif_count_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", wl12xx_open_count(wl)); }
static ssize_t fwlog_enable_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; u8 value; if (wl->conf.fwlog.output == WL12XX_FWLOG_OUTPUT_DBG_PINS) value = 0; else value = 1; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", value); }
static ssize_t beacon_interval_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) { struct wl1271 *wl = file->private_data; u8 value; if (wl->conf.conn.wake_up_event == CONF_WAKE_UP_EVENT_BEACON || wl->conf.conn.wake_up_event == CONF_WAKE_UP_EVENT_N_BEACONS) value = wl->conf.conn.listen_interval; else value = 0; return wl1271_format_buffer(user_buf, count, ppos, "%d\n", value); }