path: root/wpa_supplicant/p2p_supplicant_sd.c
Commit message (Collapse)AuthorAgeFilesLines
* P2P SD: Avoid undefined behavior in pointer arithmeticJouni Malinen2015-10-251-9/+9
| | | | | | | | | Reorder terms in a way that no invalid pointers are generated with pos+len operations. end-pos is always defined (with a valid pos pointer) while pos+len could end up pointing beyond the end pointer which would be undefined behavior. Signed-off-by: Jouni Malinen <j@w1.fi>
* P2PS: Add CPT parameter to P2P_SERVICE_ADD asp commandMax Stepanov2015-07-261-2/+3
| | | | | | | | | | | | | | | | | | | | Add Coordination Transport Protocol parameter to P2P_SERVICE_ADD asp command. Extend p2ps_advertisement structure to contain CPT priorities and a supported CPT bitmask. The format of the new parameter: cpt=<cpt>[:<cpt>] where <cpt> is a name of the Coordination Protocol Transport. This implementation supports two CPT names: UDP and MAC. The order of specified CPTs defines their priorities where the first one has the highest priority. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com> Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com>
* P2PS: Add P2PS advertisements on ALL_SERVICES ANQP queryMax Stepanov2015-03-201-1/+19
| | | | | | | Add P2PS advertisements to a query response on ANQP query of ALL_SERVICES type. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
* P2PS: Delete ASP advertisements on wpas_p2p_service_flushMax Stepanov2015-03-201-0/+7
| | | | | | | Delete all ASP serice advertisement on wpas_p2p_service_flush similarly to Bonjour and UPnP services. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
* P2PS: Update SD indicator value on ASP add/del/updateMax Stepanov2015-03-201-4/+14
| | | | | | | Update a service update indicator value on ASP service advertisement add/del/update operations. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
* P2P: Move upper layer SD interaction into a separate fileJouni Malinen2015-03-151-0/+1237
wpa_supplicant/p2p_supplicant.c has reached almost 10000 lines in length and was getting a bit inconvenient to edit, so start splitting it into separate files. Signed-off-by: Jouni Malinen <j@w1.fi>