Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drivers/src/wireless/cyw43439/ioctl.zig
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ pub const Response = struct {
else blk: {
_ = self.reader.discard(@fromBackingInt(self.padding())) catch unreachable;
self.bdc_hdr = self.reader.takeStruct(BDC_Header, .little) catch unreachable;
// Skip the bdc padding too, data starts right after it.
_ = self.reader.discard(@fromBackingInt(self.bdc_hdr.?.padding())) catch 0;
break :blk self.bdc_hdr.?;
};
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/src/wireless/cyw43439/wifi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ pub fn send_zc(self: *Self, buffer: []u8) anyerror!void {
const bytes_len = 18 + eth_frame_len;
const words_len = ((bytes_len + 3) >> 2) + 1; // round and add 1 for bus command

self.bus.write(.wlan, 0, @intCast(bytes_len), as_words(writer.buffered(), words_len));
self.bus.write(.wlan, 0, @intCast(bytes_len), as_words(buffer, words_len));
}

pub fn has_credit(self: *Self) bool {
Expand Down
Loading