14 #include <linux/netdevice.h>
15 #include <linux/version.h>
20 static const unsigned char wildcard_address[
ETH_ALEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
27 sema_init(&priv->mlme_blocking_mutex, 1);
29 #ifdef CSR_SUPPORT_WEXT
58 #ifdef CSR_SUPPORT_WEXT
87 unifi_error(priv,
"sme_mgt_wifi_on: Failed to get f/w\n");
128 "sme_mgt_wifi_on: unifi_configure_low_power_mode() returned an error\n");
150 const int interfaceNum = 0;
177 #ifdef CSR_SUPPORT_WEXT
181 priv->wext_conf.capability = 0;
211 const u8 *sig_packed,
int sig_len,
227 if (client ==
NULL) {
239 if ((sig_packed ==
NULL) || (sig_len <= 0)) {
253 "Control indication (0x%x) for native SME.\n",
256 *(
u8*)&signal = *sig_packed;
257 signal_len = sig_len;
258 }
else if (receiver_id == 0) {
265 "Signal 0x%.4X with ReceiverId 0 for native SME.\n",
268 *(
u8*)&signal = *sig_packed;
269 signal_len = sig_len;
272 "sme_native_log_event - Received unknown signal 0x%.4X.\n",
282 total_len = signal_len;
291 if (logptr ==
NULL) {
293 "Failed to allocate %d bytes for a UDI log record\n",
299 INIT_LIST_HEAD(&logptr->
q);
300 msgptr = &logptr->
msg;
307 p = (
u8 *)(msgptr + 1);
308 memcpy(p, &signal, signal_len);
423 const u8 *packed_signal,
int packed_signal_len,
455 const u8 *sig_packed,
int sig_len,
467 if ((sig_packed ==
NULL) || (sig_len <= 0)) {
477 "sme_native_mlme_event_handler - Received unknown signal 0x%.4X.\n",
538 unifi_info(priv,
"CSR_MLME_CONNECTED_INDICATION_ID ignored\n");
573 unsigned char set_default_mib)
579 #ifdef CSR_SUPPORT_WEXT
581 priv->wext_conf.flag_associated = 0;