[PATCH] wireless: fix mode checking in for_each_interface

2021-11-02 Thread Jean-Pierre TOSONI
When searching through wifi-ifaces for specific modes, the mode string must be compared as a full word. So, add spaces around the searched name. Else, adding a future new mode like "newap" or "apdetector" which embed an existing "ap" mode string, will end in detecting the wrong interface. This wa

[PATCH] wireless: fix mode checking in for_each_interface

2021-10-27 Thread jpt . 7196
From: Jean-Pierre Tosoni When searching through wifi-ifaces for specific modes, the mode string must be compared as a full word. Else, adding a future new mode like "newap" or "apdetector" which embed an existing "ap" mode string, will end in detecting the wrong interface. This was found while