bcmdhd: fixed to correctly handle the wl_cfg80211_set_channel error case

[Issue]
When the SoftAP Set channel is failed, it returned a positive value which is not intensional.
Due to this, the hostapd could not handle this failure cause correctly.

[Solution]
Makes return the error value as expected.

Bug:198969438
Test: Manual, check the log

Signed-off-by: Sungjoon Park <sungjoon.park@broadcom.corp-partner.google.com>
Change-Id: I31a84c933964e6e7e285bf0bcba7bcec974716d7
Merged-In: I31a84c933964e6e7e285bf0bcba7bcec974716d7

(cherry picked from commit e62fff69077f7009428068ff975a9a9b11a4ba37)

Change-Id: I697925ef50602a98c04c323929b907bef70d7487
1 file changed
tree: 624a2dcf16fe86d18a396c8efb0d52dc5526c823
  1. document/
  2. include/
  3. aiutils.c
  4. bcm_app_utils.c
  5. bcm_l2_filter.c
  6. bcmbloom.c
  7. bcmevent.c
  8. bcmsdh.c
  9. bcmsdh_linux.c
  10. bcmsdh_sdmmc.c
  11. bcmsdh_sdmmc_linux.c
  12. bcmsdspi.h
  13. bcmsdspi_linux.c
  14. bcmsdstd.h
  15. bcmspibrcm.c
  16. bcmstdlib_s.c
  17. bcmutils.c
  18. bcmwifi_channels.c
  19. bcmxtlv.c
  20. dhd.h
  21. dhd_bitpack.h
  22. dhd_bus.h
  23. dhd_buzzz.h
  24. dhd_cdc.c
  25. dhd_cfg80211.c
  26. dhd_cfg80211.h
  27. dhd_common.c
  28. dhd_custom_cis.c
  29. dhd_custom_google.c
  30. dhd_custom_gpio.c
  31. dhd_custom_memprealloc.c
  32. dhd_custom_msm.c
  33. dhd_dbg.h
  34. dhd_dbg_ring.c
  35. dhd_dbg_ring.h
  36. dhd_debug.c
  37. dhd_debug.h
  38. dhd_debug_linux.c
  39. dhd_event_log_filter.c
  40. dhd_event_log_filter.h
  41. dhd_flowring.c
  42. dhd_flowring.h
  43. dhd_ip.c
  44. dhd_ip.h
  45. dhd_linux.c
  46. dhd_linux.h
  47. dhd_linux_exportfs.c
  48. dhd_linux_lb.c
  49. dhd_linux_pktdump.c
  50. dhd_linux_pktdump.h
  51. dhd_linux_platdev.c
  52. dhd_linux_priv.h
  53. dhd_linux_rx.c
  54. dhd_linux_sched.c
  55. dhd_linux_sock_qos.h
  56. dhd_linux_tx.c
  57. dhd_linux_tx.h
  58. dhd_linux_wq.c
  59. dhd_linux_wq.h
  60. dhd_log_dump.c
  61. dhd_log_dump.h
  62. dhd_mschdbg.c
  63. dhd_mschdbg.h
  64. dhd_msgbuf.c
  65. dhd_pcie.c
  66. dhd_pcie.h
  67. dhd_pcie_linux.c
  68. dhd_pktlog.c
  69. dhd_pktlog.h
  70. dhd_plat.h
  71. dhd_pno.c
  72. dhd_pno.h
  73. dhd_proto.h
  74. dhd_rtt.c
  75. dhd_rtt.h
  76. dhd_sdio.c
  77. dhd_statlog.c
  78. dhd_statlog.h
  79. dhd_wlfc.c
  80. dhd_wlfc.h
  81. frag.c
  82. frag.h
  83. fwpkg_utils.c
  84. hnd_pktpool.c
  85. hnd_pktq.c
  86. hndlhl.c
  87. hndmem.c
  88. hndpmu.c
  89. Kbuild
  90. Kconfig
  91. linux_osl.c
  92. linux_osl_priv.h
  93. linux_pkt.c
  94. Makefile
  95. pcie_core.c
  96. sbutils.c
  97. siutils.c
  98. siutils_priv.h
  99. wb_regon_coordinator.c
  100. wifi_stats.h
  101. wl_android.c
  102. wl_android.h
  103. wl_cfg80211.c
  104. wl_cfg80211.h
  105. wl_cfg_btcoex.c
  106. wl_cfg_cellavoid.c
  107. wl_cfg_cellavoid.h
  108. wl_cfgnan.c
  109. wl_cfgnan.h
  110. wl_cfgp2p.c
  111. wl_cfgp2p.h
  112. wl_cfgscan.c
  113. wl_cfgscan.h
  114. wl_cfgvendor.c
  115. wl_cfgvendor.h
  116. wl_cfgvif.c
  117. wl_cfgvif.h
  118. wl_linux_mon.c
  119. wl_roam.c
  120. wldev_common.c