cmd.c (58e16d792a6a8c6b750f637a4649967fcac853dc) cmd.c (708884e7f7f3adb00ddb32d1c1a772d30bf86747)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file contains the handling of command.
4 * It prepares command and sends it to firmware when it is ready.
5 */
6
7#include <linux/hardirq.h>
8#include <linux/kfifo.h>

--- 136 unchanged lines hidden (view full) ---

145 netdev_info(priv->dev,
146 "unidentified region code; using the default (USA)\n");
147 }
148
149 if (priv->current_addr[0] == 0xff)
150 memmove(priv->current_addr, cmd.permanentaddr, ETH_ALEN);
151
152 if (!priv->copied_hwaddr) {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * This file contains the handling of command.
4 * It prepares command and sends it to firmware when it is ready.
5 */
6
7#include <linux/hardirq.h>
8#include <linux/kfifo.h>

--- 136 unchanged lines hidden (view full) ---

145 netdev_info(priv->dev,
146 "unidentified region code; using the default (USA)\n");
147 }
148
149 if (priv->current_addr[0] == 0xff)
150 memmove(priv->current_addr, cmd.permanentaddr, ETH_ALEN);
151
152 if (!priv->copied_hwaddr) {
153 memcpy(priv->dev->dev_addr, priv->current_addr, ETH_ALEN);
153 eth_hw_addr_set(priv->dev, priv->current_addr);
154 if (priv->mesh_dev)
154 if (priv->mesh_dev)
155 memcpy(priv->mesh_dev->dev_addr,
156 priv->current_addr, ETH_ALEN);
155 eth_hw_addr_set(priv->mesh_dev, priv->current_addr);
157 priv->copied_hwaddr = 1;
158 }
159
160out:
161 return ret;
162}
163
164static int lbs_ret_host_sleep_cfg(struct lbs_private *priv, unsigned long dummy,

--- 1434 unchanged lines hidden ---
156 priv->copied_hwaddr = 1;
157 }
158
159out:
160 return ret;
161}
162
163static int lbs_ret_host_sleep_cfg(struct lbs_private *priv, unsigned long dummy,

--- 1434 unchanged lines hidden ---