wmi.c (82e14f56f7408cb13c47eef9fd6922f22e88109a) wmi.c (551185ca0a97a11917edc3ad8e11d68912795902)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

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

912 "frame_type=%d\n",
913 bih->ch, bih->snr, bih->snr - 95, bih->bssid,
914 bih->frame_type);
915
916 if (bih->frame_type != BEACON_FTYPE &&
917 bih->frame_type != PROBERESP_FTYPE)
918 return 0; /* Only update BSS table for now */
919
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

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

912 "frame_type=%d\n",
913 bih->ch, bih->snr, bih->snr - 95, bih->bssid,
914 bih->frame_type);
915
916 if (bih->frame_type != BEACON_FTYPE &&
917 bih->frame_type != PROBERESP_FTYPE)
918 return 0; /* Only update BSS table for now */
919
920 if (bih->frame_type == BEACON_FTYPE &&
921 test_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag)) {
922 clear_bit(CLEAR_BSSFILTER_ON_BEACON, &ar->flag);
923 ath6kl_wmi_bssfilter_cmd(ar->wmi, NONE_BSS_FILTER, 0);
924 }
925
920 channel = ieee80211_get_channel(ar->wdev->wiphy, le16_to_cpu(bih->ch));
921 if (channel == NULL)
922 return -EINVAL;
923
924 if (len < 8 + 2 + 2)
925 return -EINVAL;
926
927 /*

--- 2126 unchanged lines hidden ---
926 channel = ieee80211_get_channel(ar->wdev->wiphy, le16_to_cpu(bih->ch));
927 if (channel == NULL)
928 return -EINVAL;
929
930 if (len < 8 + 2 + 2)
931 return -EINVAL;
932
933 /*

--- 2126 unchanged lines hidden ---