if (!smp && hdr->mgmt_class != mgmt_class)
return;
- if (attr_id && hdr->attr_id != attr_id)
+ if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id)
return;
printk("Madeye:sent SMP\n");
{
if (!smp && mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class != mgmt_class)
return;
- if (attr_id && mad_recv_wc->recv_buf.mad->mad_hdr.attr_id != attr_id)
+ if (attr_id && be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) != attr_id)
return;
printk("Madeye:recv SMP\n");
if (!gmp && hdr->mgmt_class != mgmt_class)
return;
- if (attr_id && hdr->attr_id != attr_id)
+ if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id)
return;
printk("Madeye:sent GMP\n");
if (!gmp && hdr->mgmt_class != mgmt_class)
return;
- if (attr_id && hdr->attr_id != attr_id)
+ if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id)
return;
printk("Madeye:recv GMP\n");