Lines Matching refs:regd
1045 struct ieee80211_regdomain *regd; in mwifiex_create_custom_regdomain() local
1055 regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL); in mwifiex_create_custom_regdomain()
1056 if (!regd) in mwifiex_create_custom_regdomain()
1065 kfree(regd); in mwifiex_create_custom_regdomain()
1096 rule = ®d->reg_rules[valid_rules - 1]; in mwifiex_create_custom_regdomain()
1119 regd->n_reg_rules = valid_rules; in mwifiex_create_custom_regdomain()
1120 regd->alpha2[0] = '9'; in mwifiex_create_custom_regdomain()
1121 regd->alpha2[1] = '9'; in mwifiex_create_custom_regdomain()
1123 return regd; in mwifiex_create_custom_regdomain()
1133 struct ieee80211_regdomain *regd; in mwifiex_ret_chan_region_cfg() local
1155 regd = mwifiex_create_custom_regdomain(priv, in mwifiex_ret_chan_region_cfg()
1157 if (!IS_ERR(regd)) in mwifiex_ret_chan_region_cfg()
1158 priv->adapter->regd = regd; in mwifiex_ret_chan_region_cfg()