Use P2P_IE_VENDOR_TYPE more consistently
Previously, both this and combination of OUI_WFA and P2P_OUI_TYPE were used. Using the full 32-bit value as a single operation saves a bit in code size, so start moving towards using it more consistently when writing or finding the P2P vendor specific element. Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
This commit is contained in:
parent
8714caa1c2
commit
8bc4372f37
5 changed files with 30 additions and 63 deletions
|
@ -96,9 +96,8 @@ u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid)
|
|||
u8 bitmap;
|
||||
*eid++ = WLAN_EID_VENDOR_SPECIFIC;
|
||||
*eid++ = 4 + 3 + 1;
|
||||
WPA_PUT_BE24(eid, OUI_WFA);
|
||||
eid += 3;
|
||||
*eid++ = P2P_OUI_TYPE;
|
||||
WPA_PUT_BE32(eid, P2P_IE_VENDOR_TYPE);
|
||||
eid += 4;
|
||||
|
||||
*eid++ = P2P_ATTR_MANAGEABILITY;
|
||||
WPA_PUT_LE16(eid, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue