It was discovered that MGMT_DATA2 can contain up to 28 bytes of data instead of the 12 bytes written in the Documentation by accounting the limit of 16 bytes declared in Documentation subtracting the first 4 byte in the packet header. Update the define with the real world value.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -45,8 +45,8 @@ struct sk_buff; · 44 unmodified lines | ||
| 45 | 45 | QCA_HDR_MGMT_COMMAND_LEN + \ |
| 46 | 46 | QCA_HDR_MGMT_DATA1_LEN) |
| 47 | 47 | |
| 48 | −#define QCA_HDR_MGMT_DATA2_LEN 12 /* Other 12 byte for the mdio data */ | |
| 49 | −#define QCA_HDR_MGMT_PADDING_LEN 34 /* Padding to reach the min Ethernet packet */ | |
| 48 | +#define QCA_HDR_MGMT_DATA2_LEN 28 /* Other 28 byte for the mdio data */ | |
| 49 | +#define QCA_HDR_MGMT_PADDING_LEN 18 /* Padding to reach the min Ethernet packet */ | |
| 50 | 50 | |
| 51 | 51 | #define QCA_HDR_MGMT_PKT_LEN (QCA_HDR_MGMT_HEADER_LEN + \ |
| 52 | 52 | QCA_HDR_LEN + \ |