mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
less verbose cyw driver
This commit is contained in:
1 parent
710e7b2004
commit
6e72bf4b5f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -21663,7 +21663,7 @@ static void cyw_handle_bdc_evnt(struct bdc_hdr *bdc, size_t len) {
|
|||||||
uint32_t status = mg_ntohl(msg->event.status);
|
uint32_t status = mg_ntohl(msg->event.status);
|
||||||
uint32_t reason = mg_ntohl(msg->event.reason);
|
uint32_t reason = mg_ntohl(msg->event.reason);
|
||||||
uint16_t flags = mg_ntohs(msg->event.flags);
|
uint16_t flags = mg_ntohs(msg->event.flags);
|
||||||
MG_DEBUG(("BCM event %lu %lu %lu %p", event_type, status, reason, flags));
|
MG_VERBOSE(("BCM evt %lu %lu %lu %p", event_type, status, reason, flags));
|
||||||
if (event_type == 16 && status == 0) { // Link
|
if (event_type == 16 && status == 0) { // Link
|
||||||
s_link = flags & 1;
|
s_link = flags & 1;
|
||||||
} else if (event_type == 46 && s_link) { // PSK sup with link up
|
} else if (event_type == 46 && s_link) { // PSK sup with link up
|
||||||
|
|||||||
+1
-1
@@ -293,7 +293,7 @@ static void cyw_handle_bdc_evnt(struct bdc_hdr *bdc, size_t len) {
|
|||||||
uint32_t status = mg_ntohl(msg->event.status);
|
uint32_t status = mg_ntohl(msg->event.status);
|
||||||
uint32_t reason = mg_ntohl(msg->event.reason);
|
uint32_t reason = mg_ntohl(msg->event.reason);
|
||||||
uint16_t flags = mg_ntohs(msg->event.flags);
|
uint16_t flags = mg_ntohs(msg->event.flags);
|
||||||
MG_DEBUG(("BCM event %lu %lu %lu %p", event_type, status, reason, flags));
|
MG_VERBOSE(("BCM evt %lu %lu %lu %p", event_type, status, reason, flags));
|
||||||
if (event_type == 16 && status == 0) { // Link
|
if (event_type == 16 && status == 0) { // Link
|
||||||
s_link = flags & 1;
|
s_link = flags & 1;
|
||||||
} else if (event_type == 46 && s_link) { // PSK sup with link up
|
} else if (event_type == 46 && s_link) { // PSK sup with link up
|
||||||
|
|||||||
Reference in new issue
Block a user