26 #include <linux/module.h>
29 #include <linux/slab.h>
44 wake_up_event, listen_interval);
46 wake_up = kzalloc(
sizeof(*wake_up),
GFP_KERNEL);
57 wake_up,
sizeof(*wake_up));
105 if (power < 0 || power > 25)
135 feature = kzalloc(
sizeof(*feature),
GFP_KERNEL);
147 feature,
sizeof(*feature));
228 bool enable,
void *mc_list,
u32 mc_list_len)
265 rx_timeout = kzalloc(
sizeof(*rx_timeout),
GFP_KERNEL);
278 rx_timeout,
sizeof(*rx_timeout));
301 rts_threshold = wl->
conf.rx.rts_threshold;
366 beacon_filter = kzalloc(
sizeof(*beacon_filter),
GFP_KERNEL);
367 if (!beacon_filter) {
373 beacon_filter->
enable = enable_filter;
382 beacon_filter,
sizeof(*beacon_filter));
389 kfree(beacon_filter);
399 bool vendor_spec =
false;
403 ie_table = kzalloc(
sizeof(*ie_table),
GFP_KERNEL);
412 for (i = 0; i < wl->
conf.conn.bcn_filt_ie_count; i++) {
414 ie_table->
table[idx++] = r->
ie;
438 ie_table,
sizeof(*ie_table));
449 #define ACX_CONN_MONIT_DISABLE_VALUE 0xffffffff
460 enable ?
"enabled" :
"disabled");
469 threshold = wl->
conf.conn.synch_fail_thold;
470 timeout = wl->
conf.conn.bss_lose_timeout;
481 "parameters: %d", ret);
557 detection = kzalloc(
sizeof(*detection),
GFP_KERNEL);
567 detection,
sizeof(*detection));
613 acx_aid = kzalloc(
sizeof(*acx_aid),
GFP_KERNEL);
651 mask,
sizeof(*mask));
725 wl->
stats.fw_stats_len);
770 cpu_to_le32(wlcore_hw_sta_get_ap_rate_mask(wl, wlvif));
844 "aifs %d txop %d", ac, cw_min, cw_max, aifsn, txop);
874 u32 apsd_conf0,
u32 apsd_conf1)
918 frag_threshold = wl->
conf.tx.frag_threshold;
976 mem_conf = kzalloc(
sizeof(*mem_conf),
GFP_KERNEL);
1047 rx_conf = kzalloc(
sizeof(*rx_conf),
GFP_KERNEL);
1299 bool allow_ht_operation,
u8 hlid)
1317 ht_capabilites = ht_cap->
cap;
1346 u16 ht_operation_mode)
1430 acx->
hlid = peer_hlid;
1431 acx->
tid = tid_index;
1454 tsf_info = kzalloc(
sizeof(*tsf_info),
GFP_KERNEL);
1463 tsf_info,
sizeof(*tsf_info));
1481 u32 conf_queues, enable_queues;
1486 rx_streaming = kzalloc(
sizeof(*rx_streaming),
GFP_KERNEL);
1487 if (!rx_streaming) {
1492 conf_queues = wl->
conf.rx_streaming.queues;
1494 enable_queues = conf_queues;
1498 for (i = 0; i < 8; i++) {
1504 if (!(conf_queues &
BIT(i)))
1508 rx_streaming->
tid =
i;
1509 rx_streaming->
enable = enable_queues &
BIT(i);
1510 rx_streaming->
period = wl->
conf.rx_streaming.interval;
1511 rx_streaming->
timeout = wl->
conf.rx_streaming.interval;
1515 sizeof(*rx_streaming));
1522 kfree(rx_streaming);
1558 config_ps = kzalloc(
sizeof(*config_ps),
GFP_KERNEL);
1569 sizeof(*config_ps));
1632 wl->
conf.fm_coex.fm_disturbed_band_margin;
1730 int wl1271_acx_default_rx_filter_enable(
struct wl1271 *wl,
bool enable,
1759 int wl1271_acx_set_rx_filter(
struct wl1271 *wl,
u8 index,
bool enable,
1763 int fields_size = 0;
1771 "acx set rx filter idx: %d enable: %d filter: %p",
1772 index, enable, filter);
1781 acx_size =
ALIGN(
sizeof(*acx) + fields_size, 4);