Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171047
b: refs/heads/master
c: 6e85e0b
h: refs/heads/master
i:
  171045: f0cf6c1
  171043: 13816ff
  171039: 8d531f7
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Oct 27, 2009
1 parent a2210af commit e70b4ae
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0de37417e51219d7d56a452d18fa7b829342fcc
refs/heads/master: 6e85e0b7ab1cafd6ff63c391d231b5a39934802e
24 changes: 0 additions & 24 deletions trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,30 +1542,6 @@ int lbs_execute_next_command(struct lbs_private *priv)
return ret;
}

void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str)
{
union iwreq_data iwrq;
u8 buf[50];

lbs_deb_enter(LBS_DEB_WEXT);

memset(&iwrq, 0, sizeof(union iwreq_data));
memset(buf, 0, sizeof(buf));

snprintf(buf, sizeof(buf) - 1, "%s", str);

iwrq.data.length = strlen(buf) + 1 + IW_EV_LCP_LEN;

/* Send Event to upper layer */
lbs_deb_wext("event indication string %s\n", (char *)buf);
lbs_deb_wext("event indication length %d\n", iwrq.data.length);
lbs_deb_wext("sending wireless event IWEVCUSTOM for %s\n", str);

wireless_send_event(priv->dev, IWEVCUSTOM, &iwrq, buf);

lbs_deb_leave(LBS_DEB_WEXT);
}

static void lbs_send_confirmsleep(struct lbs_private *priv)
{
unsigned long flags;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/net/wireless/libertas/decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
u8 band,
u16 channel);

void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str);

/* persistcfg.c */
void lbs_persist_config_init(struct net_device *net);
void lbs_persist_config_remove(struct net_device *net);
Expand Down
24 changes: 24 additions & 0 deletions trunk/drivers/net/wireless/libertas/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@ static inline void lbs_cancel_association_work(struct lbs_private *priv)
priv->pending_assoc_req = NULL;
}

void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str)
{
union iwreq_data iwrq;
u8 buf[50];

lbs_deb_enter(LBS_DEB_WEXT);

memset(&iwrq, 0, sizeof(union iwreq_data));
memset(buf, 0, sizeof(buf));

snprintf(buf, sizeof(buf) - 1, "%s", str);

iwrq.data.length = strlen(buf) + 1 + IW_EV_LCP_LEN;

/* Send Event to upper layer */
lbs_deb_wext("event indication string %s\n", (char *)buf);
lbs_deb_wext("event indication length %d\n", iwrq.data.length);
lbs_deb_wext("sending wireless event IWEVCUSTOM for %s\n", str);

wireless_send_event(priv->dev, IWEVCUSTOM, &iwrq, buf);

lbs_deb_leave(LBS_DEB_WEXT);
}

/**
* @brief Find the channel frequency power info with specific channel
*
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/libertas/wext.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#ifndef _LBS_WEXT_H_
#define _LBS_WEXT_H_

void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str);

extern struct iw_handler_def lbs_handler_def;
extern struct iw_handler_def mesh_handler_def;

Expand Down

0 comments on commit e70b4ae

Please sign in to comment.