351-0017-brcmfmac-drop-unused-pm_block-vif-attribute.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Mon, 6 Jun 2016 23:03:55 +0200
  3. Subject: [PATCH] brcmfmac: drop unused pm_block vif attribute
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. This attribute was added 3 years ago by
  8. commit 3eacf866559c ("brcmfmac: introduce brcmf_cfg80211_vif structure")
  9. but it remains unused since then. It seems we can safely drop it.
  10. Signed-off-by: Rafał Miłecki <zajec5@gmail.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. @@ -587,7 +587,7 @@ struct wireless_dev *brcmf_ap_add_vif(st
  16. brcmf_dbg(INFO, "Adding vif \"%s\"\n", name);
  17. - vif = brcmf_alloc_vif(cfg, NL80211_IFTYPE_AP, false);
  18. + vif = brcmf_alloc_vif(cfg, NL80211_IFTYPE_AP);
  19. if (IS_ERR(vif))
  20. return (struct wireless_dev *)vif;
  21. @@ -5098,8 +5098,7 @@ static struct cfg80211_ops brcmf_cfg8021
  22. };
  23. struct brcmf_cfg80211_vif *brcmf_alloc_vif(struct brcmf_cfg80211_info *cfg,
  24. - enum nl80211_iftype type,
  25. - bool pm_block)
  26. + enum nl80211_iftype type)
  27. {
  28. struct brcmf_cfg80211_vif *vif_walk;
  29. struct brcmf_cfg80211_vif *vif;
  30. @@ -5114,8 +5113,6 @@ struct brcmf_cfg80211_vif *brcmf_alloc_v
  31. vif->wdev.wiphy = cfg->wiphy;
  32. vif->wdev.iftype = type;
  33. - vif->pm_block = pm_block;
  34. -
  35. brcmf_init_prof(&vif->profile);
  36. if (type == NL80211_IFTYPE_AP) {
  37. @@ -6754,7 +6751,7 @@ struct brcmf_cfg80211_info *brcmf_cfg802
  38. init_vif_event(&cfg->vif_event);
  39. INIT_LIST_HEAD(&cfg->vif_list);
  40. - vif = brcmf_alloc_vif(cfg, NL80211_IFTYPE_STATION, false);
  41. + vif = brcmf_alloc_vif(cfg, NL80211_IFTYPE_STATION);
  42. if (IS_ERR(vif))
  43. goto wiphy_out;
  44. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  45. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  46. @@ -167,7 +167,6 @@ struct vif_saved_ie {
  47. * @wdev: wireless device.
  48. * @profile: profile information.
  49. * @sme_state: SME state using enum brcmf_vif_status bits.
  50. - * @pm_block: power-management blocked.
  51. * @list: linked list.
  52. * @mgmt_rx_reg: registered rx mgmt frame types.
  53. * @mbss: Multiple BSS type, set if not first AP (not relevant for P2P).
  54. @@ -177,7 +176,6 @@ struct brcmf_cfg80211_vif {
  55. struct wireless_dev wdev;
  56. struct brcmf_cfg80211_profile profile;
  57. unsigned long sme_state;
  58. - bool pm_block;
  59. struct vif_saved_ie saved_ie;
  60. struct list_head list;
  61. u16 mgmt_rx_reg;
  62. @@ -388,8 +386,7 @@ s32 brcmf_cfg80211_down(struct net_devic
  63. enum nl80211_iftype brcmf_cfg80211_get_iftype(struct brcmf_if *ifp);
  64. struct brcmf_cfg80211_vif *brcmf_alloc_vif(struct brcmf_cfg80211_info *cfg,
  65. - enum nl80211_iftype type,
  66. - bool pm_block);
  67. + enum nl80211_iftype type);
  68. void brcmf_free_vif(struct brcmf_cfg80211_vif *vif);
  69. s32 brcmf_vif_set_mgmt_ie(struct brcmf_cfg80211_vif *vif, s32 pktflag,
  70. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  71. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  72. @@ -2074,8 +2074,7 @@ static struct wireless_dev *brcmf_p2p_cr
  73. if (p2p->bss_idx[P2PAPI_BSSCFG_DEVICE].vif)
  74. return ERR_PTR(-ENOSPC);
  75. - p2p_vif = brcmf_alloc_vif(p2p->cfg, NL80211_IFTYPE_P2P_DEVICE,
  76. - false);
  77. + p2p_vif = brcmf_alloc_vif(p2p->cfg, NL80211_IFTYPE_P2P_DEVICE);
  78. if (IS_ERR(p2p_vif)) {
  79. brcmf_err("could not create discovery vif\n");
  80. return (struct wireless_dev *)p2p_vif;
  81. @@ -2175,7 +2174,7 @@ struct wireless_dev *brcmf_p2p_add_vif(s
  82. return ERR_PTR(-EOPNOTSUPP);
  83. }
  84. - vif = brcmf_alloc_vif(cfg, type, false);
  85. + vif = brcmf_alloc_vif(cfg, type);
  86. if (IS_ERR(vif))
  87. return (struct wireless_dev *)vif;
  88. brcmf_cfg80211_arm_vif_event(cfg, vif);