2014年10月29日

试用皮肤体验反馈

2014年10月29日

我很喜欢这个七天的皮肤. 但试用期过了不让用了 ..http://style.qq.com/decorate/suit.html

 

 

Random r = new Random(); 

r.nextInt(100) ; //返回一个0到100的随机数

/* * 函 数 名 : hmac_dfs_off_chan_cac_opern_ch_dwell_timeout * 功能描述 : 无 * 1. 期 : 201410月29 * 修改内容 : 新生成函数 */ OAL_STATIC uint32_t hmac_dfs_off_chan_cac_opern_ch_dwell_timeout(void *p_arg) { hmac_vap_stru *pst_hmac_vap = NULL; hmac_band_stru *pst_band = NULL; hcc_timer_register_param hcc_timer_param = {0}; pst_hmac_vap = (hmac_vap_stru *)p_arg; if (pst_hmac_vap == NULL) { OAM_WARNING_LOG0(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_opern_ch_dwell_timeout::p_arg is null.}"); return OAL_ERR_CODE_PTR_NULL; } pst_band = pst_hmac_vap->pst_band; if (OAL_IS_NULL_PTR1(pst_band)) { OAM_WARNING_LOG0(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_opern_ch_dwell_timeout::pst_band is null.}"); return OAL_ERR_CODE_PTR_NULL; } /* 当前信道为offchan 标志 */ pst_band->st_feature.st_dfs.uc_offchan_flag = (BIT0 | BIT1); #ifdef _PRE_WLAN_FEATURE_OFFCHAN_CAC uint32_t ret; /* 切换到Off-channel CAC检测信道 */ ret = hmac_scan_switch_channel_off(&pst_hmac_vap->st_vap_base_info); if (ret != OAL_SUCC) { OAM_WARNING_LOG1(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_opern_ch_dwell_timeout::channel_off failed[%d].}", ret); } #endif /* 将当前off-channel cac信道信息赋值给VAP */ /* 启动Off-channel信道上检测时长定时器 */ hcc_timer_param_init(&hcc_timer_param, pst_hmac_vap, OAL_FALSE, OAM_MODULE_ID_HMAC, hcc_msg_get_handle_core()); hcc_timer_register_start(&pst_band->st_feature.st_dfs.st_dfs_chan_dwell_timer, hmac_dfs_off_chan_cac_off_ch_dwell_timeout, pst_band->st_feature.st_dfs_info.us_dfs_off_chan_cac_off_chan_dwell_time, &hcc_timer_param); return OAL_SUCC; } /* * 函 数 名 : hmac_dfs_off_chan_cac_off_ch_dwell_timeout * 功能描述 : 无 * 1. 期 : 201410月29 * 修改内容 : 新生成函数 */ OAL_STATIC uint32_t hmac_dfs_off_chan_cac_off_ch_dwell_timeout(void *p_arg) { hmac_vap_stru *pst_hmac_vap = NULL; hmac_band_stru *pst_band = NULL; #ifdef _PRE_WLAN_FEATURE_OFFCHAN_CAC uint32_t ret; #endif hcc_timer_register_param hcc_timer_param = {0}; pst_hmac_vap = (hmac_vap_stru *)p_arg; if (pst_hmac_vap == NULL) { OAM_WARNING_LOG0(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_off_ch_dwell_timeout::p_arg is null.}"); return OAL_ERR_CODE_PTR_NULL; } pst_band = pst_hmac_vap->pst_band; if (OAL_IS_NULL_PTR1(pst_band)) { OAM_WARNING_LOG0(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_off_ch_dwell_timeout::pst_band is null.}"); return OAL_ERR_CODE_PTR_NULL; } /* 当前信道为homechan标志 */ pst_band->st_feature.st_dfs.uc_offchan_flag = BIT1; #ifdef _PRE_WLAN_FEATURE_OFFCHAN_CAC /* 切换回工作信道 */ ret = hmac_scan_switch_channel_back(&(pst_hmac_vap->st_vap_base_info)); if (ret != OAL_SUCC) { OAM_WARNING_LOG1(0, OAM_SF_DFS, "{hmac_dfs_off_chan_cac_off_ch_dwell_timeout::scan_switch_channel_back failed[%d].}", ret); } #endif /* 启动在工作信道上的工作时长定时器 */ hcc_timer_param_init(&hcc_timer_param, pst_hmac_vap, OAL_FALSE, OAM_MODULE_ID_HMAC, hcc_msg_get_handle_core()); hcc_timer_register_start(&pst_band->st_feature.st_dfs.st_dfs_chan_dwell_timer, hmac_dfs_off_chan_cac_opern_ch_dwell_timeout, pst_band->st_feature.st_dfs_info.us_dfs_off_chan_cac_opern_chan_dwell_time, &hcc_timer_param); return OAL_SUCC; }
最新发布
09-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值