DFS: Remove unnecessary variable
This was not used for anything else than checking the value returned by the called function. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
760a5ae26b
commit
ce86f2446f
1 changed files with 2 additions and 5 deletions
|
@ -1407,8 +1407,6 @@ int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
|
||||||
int ht_enabled, int chan_offset, int chan_width,
|
int ht_enabled, int chan_offset, int chan_width,
|
||||||
int cf1, int cf2)
|
int cf1, int cf2)
|
||||||
{
|
{
|
||||||
int res;
|
|
||||||
|
|
||||||
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_RADAR_DETECTED
|
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_RADAR_DETECTED
|
||||||
"freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
|
"freq=%d ht_enabled=%d chan_offset=%d chan_width=%d cf1=%d cf2=%d",
|
||||||
freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
|
freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
|
||||||
|
@ -1421,9 +1419,8 @@ int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* mark radar frequency as invalid */
|
/* mark radar frequency as invalid */
|
||||||
res = set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
|
if (!set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
|
||||||
cf1, cf2, HOSTAPD_CHAN_DFS_UNAVAILABLE);
|
cf1, cf2, HOSTAPD_CHAN_DFS_UNAVAILABLE))
|
||||||
if (!res)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!hostapd_dfs_is_background_event(iface, freq)) {
|
if (!hostapd_dfs_is_background_event(iface, freq)) {
|
||||||
|
|
Loading…
Reference in a new issue