344-0001-brcmfmac-change-function-name-for-brcmf_cfg80211_wai.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. From: Arend van Spriel <arend@broadcom.com>
  2. Date: Wed, 17 Feb 2016 11:26:50 +0100
  3. Subject: [PATCH] brcmfmac: change function name for
  4. brcmf_cfg80211_wait_vif_event_timeout()
  5. Dropping the '_timeout' from the function name as the fact that a timeout
  6. value is passed makes it obvious a timeout is used. Also helps to keep code
  7. lines a bit shorter and easier to stick to 80 char boundary.
  8. Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
  9. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
  10. Signed-off-by: Arend van Spriel <arend@broadcom.com>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  14. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  15. @@ -564,8 +564,8 @@ struct wireless_dev *brcmf_ap_add_vif(st
  16. }
  17. /* wait for firmware event */
  18. - err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_ADD,
  19. - BRCMF_VIF_EVENT_TIMEOUT);
  20. + err = brcmf_cfg80211_wait_vif_event(cfg, BRCMF_E_IF_ADD,
  21. + BRCMF_VIF_EVENT_TIMEOUT);
  22. brcmf_cfg80211_arm_vif_event(cfg, NULL);
  23. if (!err) {
  24. brcmf_err("timeout occurred\n");
  25. @@ -6395,8 +6395,9 @@ bool brcmf_cfg80211_vif_event_armed(stru
  26. return armed;
  27. }
  28. -int brcmf_cfg80211_wait_vif_event_timeout(struct brcmf_cfg80211_info *cfg,
  29. - u8 action, ulong timeout)
  30. +
  31. +int brcmf_cfg80211_wait_vif_event(struct brcmf_cfg80211_info *cfg,
  32. + u8 action, ulong timeout)
  33. {
  34. struct brcmf_cfg80211_vif_event *event = &cfg->vif_event;
  35. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  36. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  37. @@ -402,8 +402,8 @@ bool brcmf_get_vif_state_any(struct brcm
  38. void brcmf_cfg80211_arm_vif_event(struct brcmf_cfg80211_info *cfg,
  39. struct brcmf_cfg80211_vif *vif);
  40. bool brcmf_cfg80211_vif_event_armed(struct brcmf_cfg80211_info *cfg);
  41. -int brcmf_cfg80211_wait_vif_event_timeout(struct brcmf_cfg80211_info *cfg,
  42. - u8 action, ulong timeout);
  43. +int brcmf_cfg80211_wait_vif_event(struct brcmf_cfg80211_info *cfg,
  44. + u8 action, ulong timeout);
  45. s32 brcmf_notify_escan_complete(struct brcmf_cfg80211_info *cfg,
  46. struct brcmf_if *ifp, bool aborted,
  47. bool fw_abort);
  48. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  49. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  50. @@ -1988,8 +1988,8 @@ int brcmf_p2p_ifchange(struct brcmf_cfg8
  51. brcmf_cfg80211_arm_vif_event(cfg, NULL);
  52. return err;
  53. }
  54. - err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_CHANGE,
  55. - BRCMF_VIF_EVENT_TIMEOUT);
  56. + err = brcmf_cfg80211_wait_vif_event(cfg, BRCMF_E_IF_CHANGE,
  57. + BRCMF_VIF_EVENT_TIMEOUT);
  58. brcmf_cfg80211_arm_vif_event(cfg, NULL);
  59. if (!err) {
  60. brcmf_err("No BRCMF_E_IF_CHANGE event received\n");
  61. @@ -2090,8 +2090,8 @@ static struct wireless_dev *brcmf_p2p_cr
  62. }
  63. /* wait for firmware event */
  64. - err = brcmf_cfg80211_wait_vif_event_timeout(p2p->cfg, BRCMF_E_IF_ADD,
  65. - BRCMF_VIF_EVENT_TIMEOUT);
  66. + err = brcmf_cfg80211_wait_vif_event(p2p->cfg, BRCMF_E_IF_ADD,
  67. + BRCMF_VIF_EVENT_TIMEOUT);
  68. brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL);
  69. brcmf_fweh_p2pdev_setup(pri_ifp, false);
  70. if (!err) {
  71. @@ -2180,8 +2180,8 @@ struct wireless_dev *brcmf_p2p_add_vif(s
  72. }
  73. /* wait for firmware event */
  74. - err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_ADD,
  75. - BRCMF_VIF_EVENT_TIMEOUT);
  76. + err = brcmf_cfg80211_wait_vif_event(cfg, BRCMF_E_IF_ADD,
  77. + BRCMF_VIF_EVENT_TIMEOUT);
  78. brcmf_cfg80211_arm_vif_event(cfg, NULL);
  79. if (!err) {
  80. brcmf_err("timeout occurred\n");
  81. @@ -2274,8 +2274,8 @@ int brcmf_p2p_del_vif(struct wiphy *wiph
  82. }
  83. if (!err) {
  84. /* wait for firmware event */
  85. - err = brcmf_cfg80211_wait_vif_event_timeout(cfg, BRCMF_E_IF_DEL,
  86. - BRCMF_VIF_EVENT_TIMEOUT);
  87. + err = brcmf_cfg80211_wait_vif_event(cfg, BRCMF_E_IF_DEL,
  88. + BRCMF_VIF_EVENT_TIMEOUT);
  89. if (!err)
  90. err = -EIO;
  91. else