7 #include <linux/slab.h>
9 #include <linux/sched.h>
10 #include <asm/unaligned.h>
42 netif_stop_queue(priv->
dev);
85 lbs_deb_cmd(
"CMD_RESP: response 0x%04x, seq %d, size %d\n",
90 netdev_info(priv->
dev,
91 "Received CMD_RESP with invalid sequence %d (expected %d)\n",
98 if (respcmd !=
CMD_RET(curcmd) &&
100 netdev_info(priv->
dev,
"Invalid CMD_RESP %x to command %x!\n",
110 netdev_info(priv->
dev,
111 "Firmware returns DEFER to command %x. Will let it time out...\n",
127 "CMD_RESP: PS_MODE cmd reply result 0x%x, action 0x%x\n",
152 "disconnected, invoking lbs_ps_wakeup\n");
177 if ((result != 0 || !(respcmd & 0x8000))) {
178 lbs_deb_host(
"CMD_RESP: error 0x%04x in command reply 0x%04x\n",
251 "EVENT: in FULL POWER mode, ignoreing PS_SLEEP\n");
285 "EVENT: In FULL POWER mode - ignore PS AWAKE\n");
323 netdev_alert(priv->
dev,
"EVENT: rssi low\n");
326 netdev_alert(priv->
dev,
"EVENT: snr low\n");
329 netdev_alert(priv->
dev,
"EVENT: max fail\n");
332 netdev_alert(priv->
dev,
"EVENT: rssi high\n");
335 netdev_alert(priv->
dev,
"EVENT: snr high\n");
340 netdev_info(priv->
dev,
"EVENT: MESH_AUTO_STARTED (ignoring)\n");
344 netdev_alert(priv->
dev,
"EVENT: unknown event id %d\n", event);