Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ieee80211/src/ieee80211.c

    r193d280c rb7fd2a0  
    496496}
    497497
    498 static int ieee80211_scan(void *arg)
     498static errno_t ieee80211_scan(void *arg)
    499499{
    500500        assert(arg);
     
    514514 * @param fun NIC function.
    515515 *
    516  * @return EOK if succeed, negative error code otherwise.
    517  *
    518  */
    519 static int ieee80211_open(ddf_fun_t *fun)
     516 * @return EOK if succeed, error code otherwise.
     517 *
     518 */
     519static errno_t ieee80211_open(ddf_fun_t *fun)
    520520{
    521521        nic_t *nic_data = nic_get_from_ddf_fun(fun);
     
    527527        ieee80211_dev->started = true;
    528528       
    529         int rc = ieee80211_dev->ops->start(ieee80211_dev);
     529        errno_t rc = ieee80211_dev->ops->start(ieee80211_dev);
    530530        if (rc != EOK)
    531531                return rc;
     
    655655 *
    656656 */
    657 static int ieee80211_implement(ieee80211_dev_t *ieee80211_dev,
     657static errno_t ieee80211_implement(ieee80211_dev_t *ieee80211_dev,
    658658    ieee80211_ops_t *ieee80211_ops, ieee80211_iface_t *ieee80211_iface,
    659659    nic_iface_t *nic_iface, ddf_dev_ops_t *nic_dev_ops)
     
    728728 * @param ddf_dev       Pointer to backing DDF device structure.
    729729 *
    730  * @return EOK if succeed, negative error code otherwise.
    731  *
    732  */
    733 int ieee80211_device_init(ieee80211_dev_t *ieee80211_dev, ddf_dev_t *ddf_dev)
     730 * @return EOK if succeed, error code otherwise.
     731 *
     732 */
     733errno_t ieee80211_device_init(ieee80211_dev_t *ieee80211_dev, ddf_dev_t *ddf_dev)
    734734{
    735735        ieee80211_dev->ddf_dev = ddf_dev;
     
    768768 *                        interface operations.
    769769 *
    770  * @return EOK if succeed, negative error code otherwise.
    771  *
    772  */
    773 int ieee80211_init(ieee80211_dev_t *ieee80211_dev,
     770 * @return EOK if succeed, error code otherwise.
     771 *
     772 */
     773errno_t ieee80211_init(ieee80211_dev_t *ieee80211_dev,
    774774    ieee80211_ops_t *ieee80211_ops, ieee80211_iface_t *ieee80211_iface,
    775775    nic_iface_t *ieee80211_nic_iface, ddf_dev_ops_t *ieee80211_nic_dev_ops)
    776776{
    777         int rc = ieee80211_implement(ieee80211_dev,
     777        errno_t rc = ieee80211_implement(ieee80211_dev,
    778778            ieee80211_ops, ieee80211_iface,
    779779            ieee80211_nic_iface, ieee80211_nic_dev_ops);
     
    847847 * @param ssid          Probing SSID or NULL if broadcast.
    848848 *
    849  * @return EOK if succeed, negative error code otherwise.
    850  *
    851  */
    852 int ieee80211_probe_request(ieee80211_dev_t *ieee80211_dev, char *ssid)
     849 * @return EOK if succeed, error code otherwise.
     850 *
     851 */
     852errno_t ieee80211_probe_request(ieee80211_dev_t *ieee80211_dev, char *ssid)
    853853{
    854854        nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
     
    914914 * @param ieee80211_dev Pointer to IEEE 802.11 device structure.
    915915 *
    916  * @return EOK if succeed, negative error code otherwise.
    917  *
    918  */
    919 int ieee80211_authenticate(ieee80211_dev_t *ieee80211_dev)
     916 * @return EOK if succeed, error code otherwise.
     917 *
     918 */
     919errno_t ieee80211_authenticate(ieee80211_dev_t *ieee80211_dev)
    920920{
    921921        nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
     
    964964 *                      or NULL for open networks.
    965965 *
    966  * @return EOK if succeed, negative error code otherwise.
    967  *
    968  */
    969 int ieee80211_associate(ieee80211_dev_t *ieee80211_dev, char *password)
     966 * @return EOK if succeed, error code otherwise.
     967 *
     968 */
     969errno_t ieee80211_associate(ieee80211_dev_t *ieee80211_dev, char *password)
    970970{
    971971        nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
     
    10541054 * @param ieee80211_dev Pointer to IEEE 802.11 device structure.
    10551055 *
    1056  * @return EOK if succeed, negative error code otherwise.
    1057  *
    1058  */
    1059 int ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev)
     1056 * @return EOK if succeed, error code otherwise.
     1057 *
     1058 */
     1059errno_t ieee80211_deauthenticate(ieee80211_dev_t *ieee80211_dev)
    10601060{
    10611061        ieee80211_scan_result_t *auth_data =
     
    12381238 * @param mgmt_header   Pointer to start of management frame header.
    12391239 *
    1240  * @return EOK if succeed, negative error code otherwise.
    1241  *
    1242  */
    1243 static int ieee80211_process_probe_response(ieee80211_dev_t *ieee80211_dev,
     1240 * @return EOK if succeed, error code otherwise.
     1241 *
     1242 */
     1243static errno_t ieee80211_process_probe_response(ieee80211_dev_t *ieee80211_dev,
    12441244    ieee80211_mgmt_header_t *mgmt_header, size_t buffer_size)
    12451245{
     
    13241324 * @param mgmt_header   Pointer to start of management frame header.
    13251325 *
    1326  * @return EOK if succeed, negative error code otherwise.
    1327  *
    1328  */
    1329 static int ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev,
     1326 * @return EOK if succeed, error code otherwise.
     1327 *
     1328 */
     1329static errno_t ieee80211_process_auth_response(ieee80211_dev_t *ieee80211_dev,
    13301330    ieee80211_mgmt_header_t *mgmt_header)
    13311331{
     
    13531353 * @param mgmt_header   Pointer to start of management frame header.
    13541354 *
    1355  * @return EOK if succeed, negative error code otherwise.
    1356  *
    1357  */
    1358 static int ieee80211_process_assoc_response(ieee80211_dev_t *ieee80211_dev,
     1355 * @return EOK if succeed, error code otherwise.
     1356 *
     1357 */
     1358static errno_t ieee80211_process_assoc_response(ieee80211_dev_t *ieee80211_dev,
    13591359    ieee80211_mgmt_header_t *mgmt_header)
    13601360{
     
    13811381}
    13821382
    1383 static int ieee80211_process_4way_handshake(ieee80211_dev_t *ieee80211_dev,
     1383static errno_t ieee80211_process_4way_handshake(ieee80211_dev_t *ieee80211_dev,
    13841384    void *buffer, size_t buffer_size)
    13851385{
     
    14911491                            (buffer + sizeof(ieee80211_eapol_key_frame_t));
    14921492                       
    1493                         int rc;
     1493                        errno_t rc;
    14941494                        uint8_t work_key[32];
    14951495                       
     
    16101610}
    16111611
    1612 static int ieee80211_process_eapol_frame(ieee80211_dev_t *ieee80211_dev,
     1612static errno_t ieee80211_process_eapol_frame(ieee80211_dev_t *ieee80211_dev,
    16131613    void *buffer, size_t buffer_size)
    16141614{
     
    16291629 * @param buffer_size   Size of buffer.
    16301630 *
    1631  * @return EOK if succeed, negative error code otherwise.
    1632  *
    1633  */
    1634 static int ieee80211_process_data(ieee80211_dev_t *ieee80211_dev,
     1631 * @return EOK if succeed, error code otherwise.
     1632 *
     1633 */
     1634static errno_t ieee80211_process_data(ieee80211_dev_t *ieee80211_dev,
    16351635    void *buffer, size_t buffer_size)
    16361636{
     
    16931693 * @param buffer_size   Size of buffer.
    16941694 *
    1695  * @return EOK if succeed, negative error code otherwise.
    1696  *
    1697  */
    1698 int ieee80211_rx_handler(ieee80211_dev_t *ieee80211_dev, void *buffer,
     1695 * @return EOK if succeed, error code otherwise.
     1696 *
     1697 */
     1698errno_t ieee80211_rx_handler(ieee80211_dev_t *ieee80211_dev, void *buffer,
    16991699    size_t buffer_size)
    17001700{
Note: See TracChangeset for help on using the changeset viewer.