projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 firmware: save a few bytes on the command handler
[carl9170fw.git]
/
carlfw
/
src
/
cmd.c
diff --git
a/carlfw/src/cmd.c
b/carlfw/src/cmd.c
index 90aa21407ad4a052306da150e57222613c3cc300..058f9674677752763bd20bb456b119ab6fdaa44a 100644
(file)
--- a/
carlfw/src/cmd.c
+++ b/
carlfw/src/cmd.c
@@
-59,7
+59,11
@@
void handle_cmd(struct carl9170_rsp *resp)
break;
case CARL9170_CMD_SWRST:
break;
case CARL9170_CMD_SWRST:
- resp->hdr.len = 0;
+ /*
+ * Command has no payload, so the response
+ * has no payload either.
+ * resp->hdr.len = 0;
+ */
fw.wlan.mac_reset = CARL9170_MAC_RESET_FORCE;
break;
fw.wlan.mac_reset = CARL9170_MAC_RESET_FORCE;
break;
@@
-106,7
+110,9
@@
void handle_cmd(struct carl9170_rsp *resp)
break;
case CARL9170_CMD_FREQ_START:
break;
case CARL9170_CMD_FREQ_START:
- resp->hdr.len = 0;
+ /*
+ * resp->hdr.len = 0;
+ */
rf_notify_set_channel();
break;
rf_notify_set_channel();
break;