driver-ops.h (d8787ec6b4ef1857b827699eca6f5978d0aecd74) driver-ops.h (cb71f1d136a635decf43c3b502ee34fb05640fcd)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3* Portions of this file
4* Copyright(c) 2016 Intel Deutschland GmbH
5* Copyright (C) 2018 - 2019, 2021 Intel Corporation
6*/
7
8#ifndef __MAC80211_DRIVER_OPS

--- 1540 unchanged lines hidden (view full) ---

1549 if (local->ops->change_vif_links)
1550 ret = local->ops->change_vif_links(&local->hw, &sdata->vif,
1551 old_links, new_links, old);
1552 trace_drv_return_int(local, ret);
1553
1554 return ret;
1555}
1556
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3* Portions of this file
4* Copyright(c) 2016 Intel Deutschland GmbH
5* Copyright (C) 2018 - 2019, 2021 Intel Corporation
6*/
7
8#ifndef __MAC80211_DRIVER_OPS

--- 1540 unchanged lines hidden (view full) ---

1549 if (local->ops->change_vif_links)
1550 ret = local->ops->change_vif_links(&local->hw, &sdata->vif,
1551 old_links, new_links, old);
1552 trace_drv_return_int(local, ret);
1553
1554 return ret;
1555}
1556
1557static inline int drv_change_sta_links(struct ieee80211_local *local,
1558 struct ieee80211_sub_if_data *sdata,
1559 struct ieee80211_sta *sta,
1560 u16 old_links, u16 new_links)
1561{
1562 int ret = -EOPNOTSUPP;
1563
1564 might_sleep();
1565
1566 if (!check_sdata_in_driver(sdata))
1567 return -EIO;
1568
1569 trace_drv_change_sta_links(local, sdata, sta, old_links, new_links);
1570 if (local->ops->change_sta_links)
1571 ret = local->ops->change_sta_links(&local->hw, &sdata->vif, sta,
1572 old_links, new_links);
1573 trace_drv_return_int(local, ret);
1574
1575 return ret;
1576}
1577
1557#endif /* __MAC80211_DRIVER_OPS */
1578#endif /* __MAC80211_DRIVER_OPS */