hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
....@@ -1,17 +1,6 @@
1
+// SPDX-License-Identifier: ISC
12 /*
23 * Copyright (c) 2012 Broadcom Corporation
3
- *
4
- * Permission to use, copy, modify, and/or distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11
- * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
154 */
165
176
....@@ -266,7 +255,7 @@
266255 * @status: status information.
267256 * @reason: reason code.
268257 * @auth_type: authentication type.
269
- * @datalen: lenght of event data buffer.
258
+ * @datalen: length of event data buffer.
270259 * @addr: ether address.
271260 * @ifname: interface name.
272261 * @ifidx: interface index.
....@@ -330,11 +319,12 @@
330319 int brcmf_fweh_activate_events(struct brcmf_if *ifp);
331320 void brcmf_fweh_process_event(struct brcmf_pub *drvr,
332321 struct brcmf_event *event_packet,
333
- u32 packet_len);
322
+ u32 packet_len, gfp_t gfp);
334323 void brcmf_fweh_p2pdev_setup(struct brcmf_if *ifp, bool ongoing);
335324
336325 static inline void brcmf_fweh_process_skb(struct brcmf_pub *drvr,
337
- struct sk_buff *skb, u16 stype)
326
+ struct sk_buff *skb, u16 stype,
327
+ gfp_t gfp)
338328 {
339329 struct brcmf_event *event_packet;
340330 u16 subtype, usr_stype;
....@@ -365,7 +355,7 @@
365355 if (usr_stype != BCMILCP_BCM_SUBTYPE_EVENT)
366356 return;
367357
368
- brcmf_fweh_process_event(drvr, event_packet, skb->len + ETH_HLEN);
358
+ brcmf_fweh_process_event(drvr, event_packet, skb->len + ETH_HLEN, gfp);
369359 }
370360
371361 #endif /* FWEH_H_ */