Skip to content
Snippets Groups Projects
Commit bd7ad889 authored by Nevadita's avatar Nevadita
Browse files

map-controller: Added debug trace for TLV_RADIO_OPERATION_RESTRICTION

parent cd4e99b0
No related branches found
No related tags found
1 merge request!2Added Changes for ticket 3595 section 8.1
Pipeline #5658 failed
...@@ -190,20 +190,45 @@ int debug_channel_pref_report(void *cntlr, struct cmdu_cstruct *cmdu) ...@@ -190,20 +190,45 @@ int debug_channel_pref_report(void *cntlr, struct cmdu_cstruct *cmdu)
trace("\tch_preference_op_class_nr: %d\n", trace("\tch_preference_op_class_nr: %d\n",
p->ch_preference_op_class_nr); p->ch_preference_op_class_nr);
for (j = 0; j < p->ch_preference_op_class_nr; for (j = 0; j < p->ch_preference_op_class_nr; j++) {
j++) {
trace("\t\top_class: %d\n", trace("\t\top_class: %d\n",
p->op_class[j].op_class); p->op_class[j].op_class);
trace("\t\tnon_op_ch_nr: %d\n", trace("\t\top_channel_nr: %d\n",
p->op_class[j].channel_nr); p->op_class[j].channel_nr);
//for (k = 0; k < p->operating_class[j].channel_nr; k++) for (k = 0; k < p->op_class[j].channel_nr; k++) {
// trace("\t\t\tchannel: %d\n", trace("\t\t\tchannel: %d\n",
// p->operating_class[j].channel_list[k]); p->op_class[j].channel_list[k]);
}
trace("\t\tpreference: %d\n", trace("\t\tpreference: %d\n",
p->op_class[j].preference); p->op_class[j].preference);
trace("\t\tpreference_reason: %d\n", trace("\t\tpreference_reason: %d\n",
p->op_class[j].preference_reason); p->op_class[j].preference_reason);
}
break;
}
case MAP_TLV_RADIO_OPERATION_RESTRICTION:
{
struct tlv_radio_oper_restrict *p =
(struct tlv_radio_oper_restrict *)tlv;
trace("\tradio_id: " MACFMT "\n",
MAC2STR(p->radio_id));
trace("\top_restricted_op_class_nr: %d\n",
p->op_restricted_op_class_nr);
for (j = 0; j < p->op_restricted_op_class_nr; j++) {
trace("\t\top_class: %d\n",
p->restricted_op_class[j].op_class);
trace("\t\top_channel_nr: %d\n",
p->restricted_op_class[j].channel_nr);
for (k = 0; k < p->restricted_op_class[j].channel_nr; k++) {
trace("\t\t\tchannel: %d\n",
p->restricted_op_class[j].restricted_channels[k].channel);
trace("\t\t\tmin_freq_sep: %d\n",
p->restricted_op_class[j].restricted_channels[k].min_freq_sep);
}
} }
break; break;
} }
......
...@@ -343,7 +343,7 @@ static int cntlr_channel_pref(struct ubus_context *ctx, struct ubus_object *obj, ...@@ -343,7 +343,7 @@ static int cntlr_channel_pref(struct ubus_context *ctx, struct ubus_object *obj,
// TODO: ff:ff:ff:ff:ff:ff = send to all agents // TODO: ff:ff:ff:ff:ff:ff = send to all agents
cmdu_data->message_type = CMDU_CHANNEL_PREFERENCE_QUERY; cmdu_data->message_type = CMDU_CHANNEL_PREFERENCE_QUERY;
cmdu_data->message_id = 1; cmdu_data->message_id = 2;
cmdu_data->num_tlvs = 0; cmdu_data->num_tlvs = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment