您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ wl1251_warning函数代码示例

51自学网 2021-06-03 09:59:55
  C++
这篇教程C++ wl1251_warning函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中wl1251_warning函数的典型用法代码示例。如果您正苦于以下问题:C++ wl1251_warning函数的具体用法?C++ wl1251_warning怎么用?C++ wl1251_warning使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了wl1251_warning函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wl1251_acx_data_path_params

int wl1251_acx_data_path_params(struct wl1251 *wl,				struct acx_data_path_params_resp *resp){	struct acx_data_path_params *params;	int ret;	wl1251_debug(DEBUG_ACX, "acx data path params");	params = kzalloc(sizeof(*params), GFP_KERNEL);	if (!params) {		ret = -ENOMEM;		goto out;	}	params->rx_packet_ring_chunk_size = DP_RX_PACKET_RING_CHUNK_SIZE;	params->tx_packet_ring_chunk_size = DP_TX_PACKET_RING_CHUNK_SIZE;	params->rx_packet_ring_chunk_num = DP_RX_PACKET_RING_CHUNK_NUM;	params->tx_packet_ring_chunk_num = DP_TX_PACKET_RING_CHUNK_NUM;	params->tx_complete_threshold = 1;	params->tx_complete_ring_depth = FW_TX_CMPLT_BLOCK_SIZE;	params->tx_complete_timeout = DP_TX_COMPLETE_TIME_OUT;	ret = wl1251_cmd_configure(wl, ACX_DATA_PATH_PARAMS,				   params, sizeof(*params));	if (ret < 0)		goto out;	/* FIXME: shouldn't this be ACX_DATA_PATH_RESP_PARAMS? */	ret = wl1251_cmd_interrogate(wl, ACX_DATA_PATH_PARAMS,				     resp, sizeof(*resp));	if (ret < 0) {		wl1251_warning("failed to read data path parameters: %d", ret);		goto out;	} else if (resp->header.cmd.status != CMD_STATUS_SUCCESS) {		wl1251_warning("data path parameter acx status failed");		ret = -EIO;		goto out;	}out:	kfree(params);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:48,


示例2: wl1251_acx_rts_threshold

int wl1251_acx_rts_threshold(struct wl1251 *wl, u16 rts_threshold){	struct acx_rts_threshold *rts;	int ret;	wl1251_debug(DEBUG_ACX, "acx rts threshold");	rts = kzalloc(sizeof(*rts), GFP_KERNEL);	if (!rts) {		ret = -ENOMEM;		goto out;	}	rts->threshold = rts_threshold;	ret = wl1251_cmd_configure(wl, DOT11_RTS_THRESHOLD, rts, sizeof(*rts));	if (ret < 0) {		wl1251_warning("failed to set rts threshold: %d", ret);		goto out;	}out:	kfree(rts);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:25,


示例3: wl1251_cmd_template_set

int wl1251_cmd_template_set(struct wl1251 *wl, u16 cmd_id,			    void *buf, size_t buf_len){	struct wl1251_cmd_packet_template *cmd;	size_t cmd_len;	int ret = 0;	wl1251_debug(DEBUG_CMD, "cmd template %d", cmd_id);	WARN_ON(buf_len > WL1251_MAX_TEMPLATE_SIZE);	buf_len = min_t(size_t, buf_len, WL1251_MAX_TEMPLATE_SIZE);	cmd_len = ALIGN(sizeof(*cmd) + buf_len, 4);	cmd = kzalloc(cmd_len, GFP_KERNEL);	if (!cmd) {		ret = -ENOMEM;		goto out;	}	cmd->size = cpu_to_le16(buf_len);	if (buf)		memcpy(cmd->data, buf, buf_len);	ret = wl1251_cmd_send(wl, cmd_id, cmd, cmd_len);	if (ret < 0) {		wl1251_warning("cmd set_template failed: %d", ret);		goto out;	}out:	kfree(cmd);	return ret;}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:34,


示例4: wl1251_acx_tsf_info

int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime){	struct acx_tsf_info *tsf_info;	int ret;	tsf_info = kzalloc(sizeof(*tsf_info), GFP_KERNEL);	if (!tsf_info) {		ret = -ENOMEM;		goto out;	}	ret = wl1251_cmd_interrogate(wl, ACX_TSF_INFO,				     tsf_info, sizeof(*tsf_info));	if (ret < 0) {		wl1251_warning("ACX_FW_REV interrogate failed");		goto out;	}	*mactime = tsf_info->current_tsf_lsb |		(tsf_info->current_tsf_msb << 31);out:	kfree(tsf_info);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:25,


示例5: wl1251_acx_cts_protect

int wl1251_acx_cts_protect(struct wl1251 *wl,			   enum acx_ctsprotect_type ctsprotect){	struct acx_ctsprotect *acx;	int ret;	wl1251_debug(DEBUG_ACX, "acx_set_ctsprotect");	acx = kzalloc(sizeof(*acx), GFP_KERNEL);	if (!acx) {		ret = -ENOMEM;		goto out;	}	acx->ctsprotect = ctsprotect;	ret = wl1251_cmd_configure(wl, ACX_CTS_PROTECTION, acx, sizeof(*acx));	if (ret < 0) {		wl1251_warning("Setting of ctsprotect failed: %d", ret);		goto out;	}out:	kfree(acx);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:26,


示例6: wl1251_acx_set_preamble

int wl1251_acx_set_preamble(struct wl1251 *wl, enum acx_preamble_type preamble){	struct acx_preamble *acx;	int ret;	wl1251_debug(DEBUG_ACX, "acx_set_preamble");	acx = kzalloc(sizeof(*acx), GFP_KERNEL);	if (!acx) {		ret = -ENOMEM;		goto out;	}	acx->preamble = preamble;	ret = wl1251_cmd_configure(wl, ACX_PREAMBLE_TYPE, acx, sizeof(*acx));	if (ret < 0) {		wl1251_warning("Setting of preamble failed: %d", ret);		goto out;	}out:	kfree(acx);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:25,


示例7: wl1251_acx_aid

int wl1251_acx_aid(struct wl1251 *wl, u16 aid){	struct acx_aid *acx_aid;	int ret;	wl1251_debug(DEBUG_ACX, "acx aid");	acx_aid = kzalloc(sizeof(*acx_aid), GFP_KERNEL);	if (!acx_aid) {		ret = -ENOMEM;		goto out;	}	acx_aid->aid = aid;	ret = wl1251_cmd_configure(wl, ACX_AID, acx_aid, sizeof(*acx_aid));	if (ret < 0) {		wl1251_warning("failed to set aid: %d", ret);		goto out;	}out:	kfree(acx_aid);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:25,


示例8: wl1251_acx_cca_threshold

int wl1251_acx_cca_threshold(struct wl1251 *wl){	struct acx_energy_detection *detection;	int ret;	wl1251_debug(DEBUG_ACX, "acx cca threshold");	detection = kzalloc(sizeof(*detection), GFP_KERNEL);	if (!detection) {		ret = -ENOMEM;		goto out;	}	detection->rx_cca_threshold = CCA_THRSH_DISABLE_ENERGY_D;	detection->tx_energy_detection = 0;	ret = wl1251_cmd_configure(wl, ACX_CCA_THRESHOLD,				   detection, sizeof(*detection));	if (ret < 0) {		wl1251_warning("failed to set cca threshold: %d", ret);		return ret;	}out:	kfree(detection);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:27,


示例9: wl1251_acx_sg_enable

int wl1251_acx_sg_enable(struct wl1251 *wl){	struct acx_bt_wlan_coex *pta;	int ret;	wl1251_debug(DEBUG_ACX, "acx sg enable");	pta = kzalloc(sizeof(*pta), GFP_KERNEL);	if (!pta) {		ret = -ENOMEM;		goto out;	}	pta->enable = SG_ENABLE;	ret = wl1251_cmd_configure(wl, ACX_SG_ENABLE, pta, sizeof(*pta));	if (ret < 0) {		wl1251_warning("failed to set softgemini enable: %d", ret);		goto out;	}out:	kfree(pta);	return ret;}
开发者ID:boiert,项目名称:android_kernel_htc_kovsky,代码行数:25,


示例10: wl1251_build_null_data

static int wl1251_build_null_data(struct wl1251 *wl){	struct sk_buff *skb = NULL;	int size;	void *ptr;	int ret = -ENOMEM;	if (wl->bss_type == BSS_TYPE_IBSS) {		size = sizeof(struct wl12xx_null_data_template);		ptr = NULL;	} else {		skb = ieee80211_nullfunc_get(wl->hw, wl->vif);		if (!skb)			goto out;		size = skb->len;		ptr = skb->data;	}	ret = wl1251_cmd_template_set(wl, CMD_NULL_DATA, ptr, size);out:	dev_kfree_skb(skb);	if (ret)		wl1251_warning("cmd buld null data failed %d", ret);	return ret;}
开发者ID:JonnyH,项目名称:pandora-kernel,代码行数:29,


示例11: wl1251_acx_arp_ip_filter

int wl1251_acx_arp_ip_filter(struct wl1251 *wl, bool enable, __be32 address){	struct wl1251_acx_arp_filter *acx;	int ret;	wl1251_debug(DEBUG_ACX, "acx arp ip filter, enable: %d", enable);	acx = kzalloc(sizeof(*acx), GFP_KERNEL);	if (!acx)		return -ENOMEM;	acx->version = ACX_IPV4_VERSION;	acx->enable = enable;	if (enable)		memcpy(acx->address, &address, ACX_IPV4_ADDR_SIZE);	ret = wl1251_cmd_configure(wl, ACX_ARP_IP_FILTER,				   acx, sizeof(*acx));	if (ret < 0)		wl1251_warning("failed to set arp ip filter: %d", ret);	kfree(acx);	return ret;}
开发者ID:AlexShiLucky,项目名称:linux,代码行数:25,


示例12: wl1251_join

static int wl1251_join(struct wl1251 *wl, u8 bss_type, u8 channel,		       u16 beacon_interval, u8 dtim_period){	int ret;	ret = wl1251_acx_frame_rates(wl, DEFAULT_HW_GEN_TX_RATE,				     DEFAULT_HW_GEN_MODULATION_TYPE,				     wl->tx_mgmt_frm_rate,				     wl->tx_mgmt_frm_mod);	if (ret < 0)		goto out;	ret = wl1251_cmd_join(wl, bss_type, channel, beacon_interval,			      dtim_period);	if (ret < 0)		goto out;	ret = wl1251_event_wait(wl, JOIN_EVENT_COMPLETE_ID, 100);	if (ret < 0)		wl1251_warning("join timeout");out:	return ret;}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:25,


示例13: wl1251_join

static int wl1251_join(struct wl1251 *wl, u8 bss_type, u8 channel,		       u16 beacon_interval, u8 dtim_period){	int ret;	ret = wl1251_acx_frame_rates(wl, DEFAULT_HW_GEN_TX_RATE,				     DEFAULT_HW_GEN_MODULATION_TYPE,				     wl->tx_mgmt_frm_rate,				     wl->tx_mgmt_frm_mod);	if (ret < 0)		goto out;	/*	 * Join command applies filters, and if we are not associated,	 * BSSID filter must be disabled for association to work.	 */	if (is_zero_ether_addr(wl->bssid))		wl->rx_config &= ~CFG_BSSID_FILTER_EN;	ret = wl1251_cmd_join(wl, bss_type, channel, beacon_interval,			      dtim_period);	if (ret < 0)		goto out;	ret = wl1251_event_wait(wl, JOIN_EVENT_COMPLETE_ID, 100);	if (ret < 0)		wl1251_warning("join timeout");out:	return ret;}
开发者ID:174high,项目名称:compat_wl18xx,代码行数:31,



注:本文中的wl1251_warning函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ wl1271_cmd_configure函数代码示例
C++ wl1251_error函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。