printf("Do you set Match Filter(0-No, 1-Yes): ");
ret = scanf("%d", &set_mf);
if (set_mf == 1) {
- len = __set_match_filter(match_filter);
- if (len < 0 || len >= MAX_MATCH_FILTER_LEN) {
+ int n = __set_match_filter(match_filter);
+ if (n < 0 || n >= MAX_MATCH_FILTER_LEN) {
printf("Not set match filter\n");
return;
}
- __print_match_filter(match_filter, len);
- ret = wifi_aware_publish_set_match_filter(publish, match_filter, len);
+ __print_match_filter(match_filter, n);
+ ret = wifi_aware_publish_set_match_filter(publish, match_filter, n);
if (ret != WIFI_AWARE_ERROR_NONE)
return;
}
printf("Do you set Match Filter(0-No, 1-Yes): ");
ret = scanf("%d", &set_mf);
if (set_mf == 1) {
- len = __set_match_filter(match_filter);
- if (len < 0 || len >= MAX_MATCH_FILTER_LEN) {
+ int n = __set_match_filter(match_filter);
+ if (n < 0 || n >= MAX_MATCH_FILTER_LEN) {
printf("Not set match filter\n");
return;
}
- ret = wifi_aware_subscribe_set_match_filter(subscribe, match_filter, len);
+ ret = wifi_aware_subscribe_set_match_filter(subscribe, match_filter, n);
if (ret != WIFI_AWARE_ERROR_NONE)
return;
}