hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
kernel/include/net/cfg80211.h
....@@ -5782,8 +5782,11 @@
57825782 * case.
57835783 * @bssid: The BSSID of the AP (may be %NULL)
57845784 * @bss: Entry of bss to which STA got connected to, can be obtained through
5785
- * cfg80211_get_bss() (may be %NULL). Only one parameter among @bssid and
5786
- * @bss needs to be specified.
5785
+ * cfg80211_get_bss() (may be %NULL). But it is recommended to store the
5786
+ * bss from the connect_request and hold a reference to it and return
5787
+ * through this param to avoid a warning if the bss is expired during the
5788
+ * connection, esp. for those drivers implementing connect op.
5789
+ * Only one parameter among @bssid and @bss needs to be specified.
57875790 * @req_ie: Association request IEs (may be %NULL)
57885791 * @req_ie_len: Association request IEs length
57895792 * @resp_ie: Association response IEs (may be %NULL)
....@@ -5831,8 +5834,12 @@
58315834 *
58325835 * @dev: network device
58335836 * @bssid: the BSSID of the AP
5834
- * @bss: entry of bss to which STA got connected to, can be obtained
5835
- * through cfg80211_get_bss (may be %NULL)
5837
+ * @bss: Entry of bss to which STA got connected to, can be obtained through
5838
+ * cfg80211_get_bss() (may be %NULL). But it is recommended to store the
5839
+ * bss from the connect_request and hold a reference to it and return
5840
+ * through this param to avoid a warning if the bss is expired during the
5841
+ * connection, esp. for those drivers implementing connect op.
5842
+ * Only one parameter among @bssid and @bss needs to be specified.
58365843 * @req_ie: association request IEs (maybe be %NULL)
58375844 * @req_ie_len: association request IEs length
58385845 * @resp_ie: association response IEs (may be %NULL)