Deleted Added
full compact
fst_ctrl_iface.c (302408) fst_ctrl_iface.c (337817)
1/*
2 * FST module - Control Interface implementation
3 * Copyright (c) 2014, Qualcomm Atheros, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8

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

643
644 return ret;
645}
646
647
648static const char * band_freq(enum mb_band_id band)
649{
650 static const char *band_names[] = {
1/*
2 * FST module - Control Interface implementation
3 * Copyright (c) 2014, Qualcomm Atheros, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8

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

643
644 return ret;
645}
646
647
648static const char * band_freq(enum mb_band_id band)
649{
650 static const char *band_names[] = {
651 [MB_BAND_ID_WIFI_2_4GHZ] "2.4GHZ",
652 [MB_BAND_ID_WIFI_5GHZ] "5GHZ",
653 [MB_BAND_ID_WIFI_60GHZ] "60GHZ",
651 [MB_BAND_ID_WIFI_2_4GHZ] = "2.4GHZ",
652 [MB_BAND_ID_WIFI_5GHZ] = "5GHZ",
653 [MB_BAND_ID_WIFI_60GHZ] = "60GHZ",
654 };
655
656 return fst_get_str_name(band, band_names, ARRAY_SIZE(band_names));
657}
658
659
660static int print_band(unsigned num, struct fst_iface *iface, const u8 *addr,
661 char *buf, size_t buflen)

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

744{
745 struct fst_group *g;
746 struct fst_iface *f;
747 unsigned num = 0;
748 int ret = 0;
749
750 foreach_fst_group(g) {
751 foreach_fst_group_iface(g, f) {
654 };
655
656 return fst_get_str_name(band, band_names, ARRAY_SIZE(band_names));
657}
658
659
660static int print_band(unsigned num, struct fst_iface *iface, const u8 *addr,
661 char *buf, size_t buflen)

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

744{
745 struct fst_group *g;
746 struct fst_iface *f;
747 unsigned num = 0;
748 int ret = 0;
749
750 foreach_fst_group(g) {
751 foreach_fst_group_iface(g, f) {
752 if (fst_iface_is_connected(f, addr)) {
752 if (fst_iface_is_connected(f, addr, TRUE)) {
753 ret += print_band(num++, f, addr,
754 buf + ret, buflen - ret);
755 }
756 }
757 }
758
759 return ret;
760}

--- 188 unchanged lines hidden ---
753 ret += print_band(num++, f, addr,
754 buf + ret, buflen - ret);
755 }
756 }
757 }
758
759 return ret;
760}

--- 188 unchanged lines hidden ---