mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 04:53:09 -04:00
Merge tag 'ieee802154-for-net-next-2025-01-03' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next
Stefan Schmidt says: ==================== pull-request: ieee802154-next 2025-01-03 Leo Stone provided a documatation fix to improve the grammar. David Gilbert spotted a non-used fucntion we can safely remove. * tag 'ieee802154-for-net-next-2025-01-03' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next: net: mac802154: Remove unused ieee802154_mlme_tx_one Documentation: ieee802154: fix grammar ==================== Link: https://patch.msgid.link/20250103154605.440478-1-stefan@datenfreihafen.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -72,7 +72,8 @@ exports a management (e.g. MLME) and data API.
|
||||
possibly with some kinds of acceleration like automatic CRC computation and
|
||||
comparison, automagic ACK handling, address matching, etc.
|
||||
|
||||
Those types of devices require different approach to be hooked into Linux kernel.
|
||||
Each type of device requires a different approach to be hooked into the Linux
|
||||
kernel.
|
||||
|
||||
HardMAC
|
||||
-------
|
||||
@@ -81,10 +82,10 @@ See the header include/net/ieee802154_netdev.h. You have to implement Linux
|
||||
net_device, with .type = ARPHRD_IEEE802154. Data is exchanged with socket family
|
||||
code via plain sk_buffs. On skb reception skb->cb must contain additional
|
||||
info as described in the struct ieee802154_mac_cb. During packet transmission
|
||||
the skb->cb is used to provide additional data to device's header_ops->create
|
||||
function. Be aware that this data can be overridden later (when socket code
|
||||
submits skb to qdisc), so if you need something from that cb later, you should
|
||||
store info in the skb->data on your own.
|
||||
the skb->cb is used to provide additional data to the device's
|
||||
header_ops->create function. Be aware that this data can be overridden later
|
||||
(when socket code submits skb to qdisc), so if you need something from that cb
|
||||
later, you should store info in the skb->data on your own.
|
||||
|
||||
To hook the MLME interface you have to populate the ml_priv field of your
|
||||
net_device with a pointer to struct ieee802154_mlme_ops instance. The fields
|
||||
@@ -94,8 +95,9 @@ All other fields are required.
|
||||
SoftMAC
|
||||
-------
|
||||
|
||||
The MAC is the middle layer in the IEEE 802.15.4 Linux stack. This moment it
|
||||
provides interface for drivers registration and management of slave interfaces.
|
||||
The MAC is the middle layer in the IEEE 802.15.4 Linux stack. At the moment, it
|
||||
provides an interface for driver registration and management of slave
|
||||
interfaces.
|
||||
|
||||
NOTE: Currently the only monitor device type is supported - it's IEEE 802.15.4
|
||||
stack interface for network sniffers (e.g. WireShark).
|
||||
|
||||
@@ -194,9 +194,6 @@ int ieee802154_mlme_tx_locked(struct ieee802154_local *local,
|
||||
struct ieee802154_sub_if_data *sdata,
|
||||
struct sk_buff *skb);
|
||||
void ieee802154_mlme_op_post(struct ieee802154_local *local);
|
||||
int ieee802154_mlme_tx_one(struct ieee802154_local *local,
|
||||
struct ieee802154_sub_if_data *sdata,
|
||||
struct sk_buff *skb);
|
||||
int ieee802154_mlme_tx_one_locked(struct ieee802154_local *local,
|
||||
struct ieee802154_sub_if_data *sdata,
|
||||
struct sk_buff *skb);
|
||||
|
||||
@@ -178,19 +178,6 @@ void ieee802154_mlme_op_post(struct ieee802154_local *local)
|
||||
ieee802154_release_queue(local);
|
||||
}
|
||||
|
||||
int ieee802154_mlme_tx_one(struct ieee802154_local *local,
|
||||
struct ieee802154_sub_if_data *sdata,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ieee802154_mlme_op_pre(local);
|
||||
ret = ieee802154_mlme_tx(local, sdata, skb);
|
||||
ieee802154_mlme_op_post(local);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ieee802154_mlme_tx_one_locked(struct ieee802154_local *local,
|
||||
struct ieee802154_sub_if_data *sdata,
|
||||
struct sk_buff *skb)
|
||||
|
||||
Reference in New Issue
Block a user