-
Notifications
You must be signed in to change notification settings - Fork 13
RDKEMW-20574 : Fix the notification locks in networkmanager plugin #319
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
72184aa
Update NetworkManagerGnomeProxy.cpp
jincysam87 ec8fb0d
Update NetworkManagerRDKProxy.cpp
jincysam87 29c743a
Update NetworkManagerImplementation.cpp
jincysam87 d724ad6
Update NetworkManagerImplementation.h
jincysam87 d757a80
Update NetworkManagerImplementation.cpp
jincysam87 43abfe7
Update NetworkManagerImplementation.h
jincysam87 065578b
Update NetworkManagerLogger.h
jincysam87 369963a
Updated
jincysam87 23ab644
Potential fix for pull request finding
jincysam87 640d3e5
Updated
jincysam87 b997e7d
Apply suggestions from code review
jincysam87 8b03526
Updated review comments
jincysam87 a637eb2
Updated
jincysam87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -762,9 +762,8 @@ namespace WPEFramework | |
| { | ||
| uint32_t rc = Core::ERROR_RPC_CALL_FAILED; | ||
|
|
||
| //Cleared the Existing Store filterred SSID list | ||
| m_filterSsidslist.clear(); | ||
| m_filterFrequencies.clear(); | ||
| std::vector<std::string> filteredSsids; | ||
| std::vector<std::string> filteredFrequencies; | ||
|
|
||
| if(ssids) | ||
| { | ||
|
|
@@ -773,7 +772,7 @@ namespace WPEFramework | |
| { | ||
| if (!tmpssidlist.empty()) | ||
| { | ||
| m_filterSsidslist.push_back(tmpssidlist.c_str()); | ||
| filteredSsids.push_back(tmpssidlist); | ||
| NMLOG_DEBUG("%s added to SSID filtering", tmpssidlist.c_str()); | ||
| } | ||
| else | ||
|
|
@@ -795,7 +794,7 @@ namespace WPEFramework | |
| const string normalizedFrequency = parsedFrequency.Data(); | ||
| if ((!normalizedFrequency.empty()) && (normalizedFrequency == frequency)) | ||
| { | ||
| m_filterFrequencies.push_back(normalizedFrequency); | ||
| filteredFrequencies.push_back(normalizedFrequency); | ||
| NMLOG_DEBUG("Frequency %s added to scan filtering", normalizedFrequency.c_str()); | ||
| } | ||
| else | ||
|
|
@@ -811,8 +810,16 @@ namespace WPEFramework | |
| } | ||
| } | ||
|
|
||
| m_filterVectorsLock.Lock(); | ||
| // Replace existing stored filters only after successful parsing/validation. | ||
| m_filterSsidslist.clear(); | ||
| m_filterFrequencies.clear(); | ||
| m_filterSsidslist = filteredSsids; | ||
| m_filterFrequencies = filteredFrequencies; | ||
| m_filterVectorsLock.Unlock(); | ||
|
Comment on lines
+813
to
+819
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since
|
||
|
|
||
| nmEvent->setwifiScanOptions(true); | ||
| if(wifi->wifiScanRequest(m_filterSsidslist)) | ||
| if(wifi->wifiScanRequest(filteredSsids)) | ||
| rc = Core::ERROR_NONE; | ||
| return rc; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.