-
Notifications
You must be signed in to change notification settings - Fork 139
RDKBWIFI-202: Implementation of Traffic Separation in unified-wifi-mesh #848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
RDKBWIFI-202: Implementation of Traffic Separation in unified-wifi-mesh #848
Conversation
| return webconfig_hal_vap_apply_by_name(ctrl, data, vap_names, num_vaps); | ||
| } | ||
|
|
||
| #ifdef EM_APP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this defined under EM_APP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The encode, decode and translation functions are all defined under EM_APP in ccsp-one-wifi.
| wifi_util_error_print(WIFI_CTRL,"%s:%d: START : Number of VAPS =%d \n",__func__, __LINE__,getTotalNumberVAPs()); | ||
| char update_status[128]; | ||
| for(UINT index = 0; index < getTotalNumberVAPs(); index++) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not as per coding guideline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple places the { is in the next line. It should be consistent with the coding guideline of having the { braces in the same line as that of for/if
source/core/wifi_ctrl_webconfig.c
Outdated
|
|
||
| if(isVapPrivate(apIdx)) | ||
| { | ||
| if((strncmp(vapInfo->u.bss_info.ssid,data->em_config.traffic_separation_policy.ssids[0].ssid,sizeof(data->em_config.traffic_separation_policy.ssids[0].ssid))==0) && (vapInfo->vlan_id == data->em_config.traffic_separation_policy.ssids[0].vlan_id)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple comparison in one line, break it up into multipe lines.
source/core/wifi_ctrl_webconfig.c
Outdated
| continue; | ||
| } | ||
| strncpy(vapInfo->u.bss_info.ssid,data->em_config.traffic_separation_policy.ssids[0].ssid,sizeof(data->em_config.traffic_separation_policy.ssids[0].ssid)); | ||
| strncpy(vapInfo->bridge_name,"brlan0",sizeof(vapInfo->bridge_name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the bridge_name hardcoded? Generic comment for all the change
Reason for change: Added traffic seperation TLV implementation Test Procedure: Verify build is successfull and check if traffic seperation is functional Risks: Medium Priority: P2
062fbcd to
b1a9cc8
Compare
| wifi_util_error_print(WIFI_CTRL,"%s:%d: START : Number of VAPS =%d \n",__func__, __LINE__,getTotalNumberVAPs()); | ||
| char update_status[128]; | ||
| for(UINT index = 0; index < getTotalNumberVAPs(); index++) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple places the { is in the next line. It should be consistent with the coding guideline of having the { braces in the same line as that of for/if
| wifi_util_info_print(WIFI_CTRL,"%s:%d: ssids_num =%d \n",__func__, __LINE__,data->em_config.traffic_separation_policy.ssids_num); | ||
|
|
||
| if(isVapPrivate(apIdx)) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not correct coding guideline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct everywhere
Reason for change: Added traffic seperation TLV implementation
Test Procedure: Verify build is successfull and check if traffic seperation is functional
Risks: Medium
Priority: P2