projects
/
carl9170fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f7132
)
carl9170 firmware: save a few bytes on the command handler
1.7.4
author
Christian Lamparter
<chunkeey@googlemail.com>
Sun, 1 Aug 2010 13:15:34 +0000
(15:15 +0200)
committer
Christian Lamparter
<chunkeey@googlemail.com>
Sun, 1 Aug 2010 13:15:34 +0000
(15:15 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/src/cmd.c
patch
|
blob
|
history
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:
- 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;
@@
-106,7
+110,9
@@
void handle_cmd(struct carl9170_rsp *resp)
break;
case CARL9170_CMD_FREQ_START:
- resp->hdr.len = 0;
+ /*
+ * resp->hdr.len = 0;
+ */
rf_notify_set_channel();
break;