hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/net/mac80211/mesh_ps.c
....@@ -1,10 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2012-2013, Marco Porsch <marco.porsch@s2005.tu-chemnitz.de>
34 * Copyright 2012-2013, cozybit Inc.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
5
+ * Copyright (C) 2021 Intel Corporation
86 */
97
108 #include "mesh.h"
....@@ -15,6 +13,7 @@
1513
1614 /**
1715 * mps_qos_null_get - create pre-addressed QoS Null frame for mesh powersave
16
+ * @sta: the station to get the frame for
1817 */
1918 static struct sk_buff *mps_qos_null_get(struct sta_info *sta)
2019 {
....@@ -47,6 +46,7 @@
4746
4847 /**
4948 * mps_qos_null_tx - send a QoS Null to indicate link-specific power mode
49
+ * @sta: the station to send to
5050 */
5151 static void mps_qos_null_tx(struct sta_info *sta)
5252 {
....@@ -403,6 +403,8 @@
403403
404404 /**
405405 * mpsp_qos_null_append - append QoS Null frame to MPSP skb queue if needed
406
+ * @sta: the station to handle
407
+ * @frames: the frame list to append to
406408 *
407409 * To properly end a mesh MPSP the last transmitted frame has to set the EOSP
408410 * flag in the QoS Control field. In case the current tailing frame is not a
....@@ -435,7 +437,7 @@
435437
436438 info = IEEE80211_SKB_CB(new_skb);
437439 info->control.vif = &sdata->vif;
438
- info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING;
440
+ info->control.flags |= IEEE80211_TX_INTCFL_NEED_TXPROCESSING;
439441
440442 __skb_queue_tail(frames, new_skb);
441443 }
....@@ -587,7 +589,7 @@
587589
588590 /* only transmit to PS STA with announced, non-zero awake window */
589591 if (test_sta_flag(sta, WLAN_STA_PS_STA) &&
590
- (!elems->awake_window || !le16_to_cpu(*elems->awake_window)))
592
+ (!elems->awake_window || !get_unaligned_le16(elems->awake_window)))
591593 return;
592594
593595 if (!test_sta_flag(sta, WLAN_STA_MPSP_OWNER))