]>
git.ipfire.org Git - network.git/blob - src/utils/network-phy-list-vht-caps.c
1 /*#############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2018 IPFire Network Development Team #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 #############################################################################*/
24 #include <network/libnetwork.h>
25 #include <network/logging.h>
26 #include <network/phy.h>
28 int main(int argc
, char** argv
) {
29 struct network_ctx
* ctx
= NULL
;
30 struct network_phy
* phy
= NULL
;
34 fprintf(stderr
, "No enough arguments\n");
40 r
= network_new(&ctx
);
44 r
= network_phy_new(ctx
, &phy
, argv
[1]);
46 fprintf(stderr
, "Could not find %s\n", argv
[1]);
50 // Print all supported VHT capabilities
51 char* vht_caps
= network_phy_list_vht_capabilities(phy
);
52 if (vht_caps
&& *vht_caps
) {
53 printf("%s\n", vht_caps
);
58 network_phy_unref(phy
);